diff --git a/contrib/sdk/sources/ffmpeg/ffmpeg-2.1/libavformat/mvdec.c b/contrib/sdk/sources/ffmpeg/ffmpeg-2.1/libavformat/mvdec.c index 5525233db..224d56537 100644 --- a/contrib/sdk/sources/ffmpeg/ffmpeg-2.1/libavformat/mvdec.c +++ b/contrib/sdk/sources/ffmpeg/ffmpeg-2.1/libavformat/mvdec.c @@ -306,6 +306,8 @@ static int mv_read_header(AVFormatContext *avctx) uint32_t pos = avio_rb32(pb); uint32_t asize = avio_rb32(pb); uint32_t vsize = avio_rb32(pb); + if (avio_feof(pb)) + return AVERROR_INVALIDDATA; avio_skip(pb, 8); av_add_index_entry(ast, pos, timestamp, asize, 0, AVINDEX_KEYFRAME); av_add_index_entry(vst, pos + asize, i, vsize, 0, AVINDEX_KEYFRAME);