aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-02-20 20:57:31 +0100
committerMichael Niedermayer <michaelni@gmx.at>2015-03-21 01:52:51 +0100
commit6faf18acbd520cae62f07dcab1d3fd0f1863e820 (patch)
treedbe45daafb672079c2e679a5213e3d0071274621
parent96807933d8a9d3fe4348a8e3d58ee2ea730fe455 (diff)
downloadffmpeg-6faf18acbd520cae62f07dcab1d3fd0f1863e820.tar.gz
avformat/wtvdec: Use 64bit for ret to avoid overflow
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit d44e0d8b930732a4a247b4884d75cf62b4ad3664) 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 a73e0bab06..2a65ec2374 100644
--- a/libavformat/wtvdec.c
+++ b/libavformat/wtvdec.c
@@ -767,7 +767,7 @@ static int recover(WtvContext *wtv, uint64_t broken_pos)
int i;
for (i = 0; i < wtv->nb_index_entries; i++) {
if (wtv->index_entries[i].pos > broken_pos) {
- int ret = avio_seek(pb, wtv->index_entries[i].pos, SEEK_SET);
+ int64_t ret = avio_seek(pb, wtv->index_entries[i].pos, SEEK_SET);
if (ret < 0)
return ret;
wtv->pts = wtv->index_entries[i].timestamp;