OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7155bd1
)
avformat/avidec: Detect index with too short entries
author
Michael Niedermayer
<michael@niedermayer.cc>
Wed, 18 May 2016 21:27:54 +0000
(23:27 +0200)
committer
Michael Niedermayer
<michael@niedermayer.cc>
Wed, 18 May 2016 21:59:02 +0000
(23:59 +0200)
Fixes Ticket5498
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/avidec.c
patch
|
blob
|
history
diff --git
a/libavformat/avidec.c
b/libavformat/avidec.c
index
b114a74
..
01d4a97
100644
(file)
--- 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)