aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRodger Combs <rodger.combs@gmail.com>2015-02-20 09:30:04 -0600
committerMichael Niedermayer <michaelni@gmx.at>2015-03-21 01:52:50 +0100
commit303ecfc373a5c03434b934e44014daae30dc7a5b (patch)
treefb2ce1c33e0d47248f8a19ce15f293f166e233fa
parent1456ed2dd55e0ceece13dbca98d8189513ae25b5 (diff)
downloadffmpeg-303ecfc373a5c03434b934e44014daae30dc7a5b.tar.gz
wtvdec: fix integer overflow resulting in errors with large files
This fixes a regression in 9fbc613f0df1628e7e78bca791fa8833846f8210 Signed-off-by: Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit 62e95757d5749e578b2abd407e3009d15a85adb0) Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavformat/wtvdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/wtvdec.c b/libavformat/wtvdec.c
index 4009964824..a73e0bab06 100644
--- a/libavformat/wtvdec.c
+++ b/libavformat/wtvdec.c
@@ -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 =