Module: libav
Branch: master
Commit: b70f04c2612f2685295b09ed7371fe694d52287e

Author:    Martin Storsjö <[email protected]>
Committer: Martin Storsjö <[email protected]>
Date:      Wed Feb 22 11:26:42 2012 +0200

flvdec: Ignore the index if the ignidx flag is set

Signed-off-by: Martin Storsjö <[email protected]>

---

 libavformat/flvdec.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c
index 70a7d20..01c67b4 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;
 

_______________________________________________
libav-commits mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-commits

Reply via email to