From b70f04c2612f2685295b09ed7371fe694d52287e Mon Sep 17 00:00:00 2001 From: Martin Storsjö Date: Wed, 22 Feb 2012 11:26:42 +0200 Subject: flvdec: Ignore the index if the ignidx flag is set MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Martin Storsjö --- libavformat/flvdec.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libavformat/flvdec.c') 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; -- cgit v1.2.3