Commit 26c0cc15 authored by Michael Niedermayer's avatar Michael Niedermayer

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

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 80a851aa
......@@ -408,7 +408,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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment