flvdec: Ignore the index if the ignidx flag is set
authorMartin Storsjö <martin@martin.st>
Wed, 22 Feb 2012 09:26:42 +0000 (11:26 +0200)
committerMartin Storsjö <martin@martin.st>
Wed, 22 Feb 2012 10:27:24 +0000 (12:27 +0200)
Signed-off-by: Martin Storsjö <martin@martin.st>
libavformat/flvdec.c

index 70a7d20..01c67b4 100644 (file)
@@ -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;