avformat/mvdec: Use 64bit for ret to avoid overflow
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 20 Feb 2015 19:41:35 +0000 (20:41 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 20 Feb 2015 19:49:51 +0000 (20:49 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 26c0cc154e06cb0064b3a3da49447ac44d82444f)

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

index 5525233..8d6a26c 100644 (file)
@@ -371,7 +371,7 @@ static int mv_read_packet(AVFormatContext *avctx, AVPacket *pkt)
     AVStream *st = avctx->streams[mv->stream_index];
     const AVIndexEntry *index;
     int frame = mv->frame[mv->stream_index];
-    int ret;
+    int64_t ret;
     uint64_t pos;
 
     if (frame  < st->nb_index_entries) {