wtvdec: fix integer overflow resulting in errors with large files
authorRodger Combs <rodger.combs@gmail.com>
Fri, 20 Feb 2015 15:30:04 +0000 (09:30 -0600)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 20 Feb 2015 17:38:36 +0000 (18:38 +0100)
This fixes a regression in 9fbc613f0df1628e7e78bca791fa8833846f8210

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/wtvdec.c

index a752ee2..95b2312 100644 (file)
@@ -965,7 +965,7 @@ static int read_header(AVFormatContext *s)
     uint8_t root[WTV_SECTOR_SIZE];
     AVIOContext *pb;
     int64_t timeline_pos;
-    int ret;
+    int64_t ret;
 
     wtv->epoch          =
     wtv->pts            =