Browse Source

avformat/mvdec: Use 64bit for ret to avoid overflow

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 26c0cc154e)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.4.8
Michael Niedermayer 11 years ago
parent
commit
81ee3385ee
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavformat/mvdec.c

+ 1
- 1
libavformat/mvdec.c View File

@@ -394,7 +394,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) {


Loading…
Cancel
Save