[FFmpeg-cvslog] flvdec: Ignore the index if the ignidx flag is set

Martin Storsjö git at videolan.org
Thu Feb 23 05:03:02 CET 2012


ffmpeg | branch: master | Martin Storsjö <martin at martin.st> | Wed Feb 22 11:26:42 2012 +0200| [b70f04c2612f2685295b09ed7371fe694d52287e] | committer: Martin Storsjö

flvdec: Ignore the index if the ignidx flag is set

Signed-off-by: Martin Storsjö <martin at martin.st>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b70f04c2612f2685295b09ed7371fe694d52287e
---

 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;
 



More information about the ffmpeg-cvslog mailing list