aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-02-20 20:41:35 +0100
committerMichael Niedermayer <michaelni@gmx.at>2015-02-20 20:49:51 +0100
commit3b17f32ec3cca0f9f1593f8bfce18a91a128e5ce (patch)
treee18435f8bffa4bb34c96c2531d57eab0640c3ef1
parent1480d9b3d39b8f4ba4f9a327c2f7d492118f75ad (diff)
downloadffmpeg-3b17f32ec3cca0f9f1593f8bfce18a91a128e5ce.tar.gz
avformat/mvdec: Use 64bit for ret to avoid overflow
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit 26c0cc154e06cb0064b3a3da49447ac44d82444f) Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavformat/mvdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mvdec.c b/libavformat/mvdec.c
index 5525233db5..8d6a26cd6c 100644
--- a/libavformat/mvdec.c
+++ b/libavformat/mvdec.c
@@ -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) {