[FFmpeg-cvslog] flv demuxer: dont error out due to index problems, but inform the user about it.

Michael Niedermayer git at videolan.org
Wed Apr 13 02:57:45 CEST 2011


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed Apr 13 02:52:16 2011 +0200| [d6f79edb6e5a5477ab4ea36d93aace5b508e6fd3] | committer: Michael Niedermayer

flv demuxer: dont error out due to index problems, but inform the user about it.
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

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

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

diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c
index 58a2aba..44d2168 100644
--- a/libavformat/flvdec.c
+++ b/libavformat/flvdec.c
@@ -211,7 +211,7 @@ static int amf_parse_object(AVFormatContext *s, AVStream *astream, AVStream *vst
 
             if (ioc->seekable && key && !strcmp(KEYFRAMES_TAG, key) && depth == 1)
                 if (parse_keyframes_index(s, ioc, vstream, max_pos) < 0)
-                    return -1;
+                    av_log(s, AV_LOG_ERROR, "Keyframe index parsing failed\n");
 
             while(avio_tell(ioc) < max_pos - 2 && (keylen = avio_rb16(ioc))) {
                 avio_skip(ioc, keylen); //skip key string



More information about the ffmpeg-cvslog mailing list