diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2016-05-18 23:27:54 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2016-05-18 23:59:02 +0200 |
commit | d08f2c172fd2baab022f0118f49e5b2852a2d463 (patch) | |
tree | 9b2b77f153d42b6e1d3b827138b5de78c220e2fe /libavformat | |
parent | 7155bd1c94c285ac53e675c7f66acc28d7fa2a71 (diff) | |
download | ffmpeg-streaming-d08f2c172fd2baab022f0118f49e5b2852a2d463.zip ffmpeg-streaming-d08f2c172fd2baab022f0118f49e5b2852a2d463.tar.gz |
avformat/avidec: Detect index with too short entries
Fixes Ticket5498
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/avidec.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/avidec.c b/libavformat/avidec.c index b114a74..01d4a97 100644 --- a/libavformat/avidec.c +++ b/libavformat/avidec.c @@ -1699,6 +1699,8 @@ static int guess_ni_flag(AVFormatContext *s) size = avio_rl32(s->pb); if (get_stream_idx(tag) == i && pos + size > st->index_entries[1].pos) last_start = INT64_MAX; + if (get_stream_idx(tag) == i && size == st->index_entries[0].size + 8) + last_start = INT64_MAX; } if (st->index_entries[0].pos > last_start) |