mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
avformat/avidec: Detect index with too short entries
Fixes Ticket5498 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit d08f2c172fd2baab022f0118f49e5b2852a2d463) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
c1c6cb21b7
commit
90b27febc6
@ -1694,6 +1694,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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user