From aa2c55e1057c0c220a1eb37c99d2c251bfe850ab Mon Sep 17 00:00:00 2001 From: Michael Giacomelli Date: Fri, 28 Nov 2014 22:25:23 +0100 Subject: Fix FS#13009. This file revealed several problems with our ASF parser: 1) The packet count in the ASF was actually a 64 bit value, leading to overflow in very long files. 2) Seeking blindly trusted the bitrate listed in the ASF header rather than computing it from the packet size and number of packets. Fix these problems and fix a few minor issues. Change-Id: Ie0f68734e6423e837757528ddb155f3bdcc979f3 --- lib/rbcodec/codecs/libasf/asf.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/rbcodec/codecs/libasf/asf.h') diff --git a/lib/rbcodec/codecs/libasf/asf.h b/lib/rbcodec/codecs/libasf/asf.h index a7d384cf3d..2398a44eab 100644 --- a/lib/rbcodec/codecs/libasf/asf.h +++ b/lib/rbcodec/codecs/libasf/asf.h @@ -33,7 +33,7 @@ struct asf_waveformatex_s { uint16_t blockalign; uint16_t bitspersample; uint16_t datalen; - uint16_t numpackets; + uint64_t numpackets; uint8_t data[46]; }; typedef struct asf_waveformatex_s asf_waveformatex_t; -- cgit v1.2.3