aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/avidec.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2016-05-18 23:27:54 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2016-05-18 23:59:02 +0200
commitd08f2c172fd2baab022f0118f49e5b2852a2d463 (patch)
tree9b2b77f153d42b6e1d3b827138b5de78c220e2fe /libavformat/avidec.c
parent7155bd1c94c285ac53e675c7f66acc28d7fa2a71 (diff)
downloadffmpeg-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/avidec.c')
-rw-r--r--libavformat/avidec.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/avidec.c b/libavformat/avidec.c
index b114a744bf..01d4a97ef6 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)