diff options
author | Martin Storsjö <martin@martin.st> | 2012-02-22 11:26:42 +0200 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2012-02-22 12:27:24 +0200 |
commit | b70f04c2612f2685295b09ed7371fe694d52287e (patch) | |
tree | fd53bb480ba6d0235cf1584ac3b44b0bfe89618b | |
parent | 0a7ce3caa8a08d38f35b0e1aae8528a99781cb9e (diff) | |
download | ffmpeg-b70f04c2612f2685295b09ed7371fe694d52287e.tar.gz |
flvdec: Ignore the index if the ignidx flag is set
Signed-off-by: Martin Storsjö <martin@martin.st>
-rw-r--r-- | libavformat/flvdec.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c index 70a7d20b13..01c67b48a5 100644 --- a/libavformat/flvdec.c +++ b/libavformat/flvdec.c @@ -157,6 +157,9 @@ static int parse_keyframes_index(AVFormatContext *s, AVIOContext *ioc, AVStream return 0; } + if (s->flags & AVFMT_FLAG_IGNIDX) + return 0; + while (avio_tell(ioc) < max_pos - 2 && amf_get_string(ioc, str_val, sizeof(str_val)) > 0) { int64_t* current_array; |