[FFmpeg-cvslog] avformat/avidec: Detect index with too short entries
Michael Niedermayer
git at videolan.org
Fri Aug 26 15:40:57 EEST 2016
ffmpeg | branch: release/2.8 | Michael Niedermayer <michael at niedermayer.cc> | Wed May 18 23:27:54 2016 +0200| [90b27febc6ac6f55cb2b9df3a45fd032dfb80f1a] | committer: Michael Niedermayer
avformat/avidec: Detect index with too short entries
Fixes Ticket5498
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
(cherry picked from commit d08f2c172fd2baab022f0118f49e5b2852a2d463)
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=90b27febc6ac6f55cb2b9df3a45fd032dfb80f1a
---
libavformat/avidec.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libavformat/avidec.c b/libavformat/avidec.c
index 5a88e05..5366847 100644
--- a/libavformat/avidec.c
+++ b/libavformat/avidec.c
@@ -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)
More information about the ffmpeg-cvslog
mailing list