Browse code

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

Michael Niedermayer authored on 2011/04/13 09:52:16
Showing 1 changed files
... ...
@@ -211,7 +211,7 @@ static int amf_parse_object(AVFormatContext *s, AVStream *astream, AVStream *vst
211 211
 
212 212
             if (ioc->seekable && key && !strcmp(KEYFRAMES_TAG, key) && depth == 1)
213 213
                 if (parse_keyframes_index(s, ioc, vstream, max_pos) < 0)
214
-                    return -1;
214
+                    av_log(s, AV_LOG_ERROR, "Keyframe index parsing failed\n");
215 215
 
216 216
             while(avio_tell(ioc) < max_pos - 2 && (keylen = avio_rb16(ioc))) {
217 217
                 avio_skip(ioc, keylen); //skip key string