[FFmpeg-cvslog] r10887 - trunk/libavformat/flvdec.c

michael subversion
Wed Oct 31 23:10:34 CET 2007


Author: michael
Date: Wed Oct 31 23:10:34 2007
New Revision: 10887

Log:
support flv with invalid header
fixes issue43


Modified:
   trunk/libavformat/flvdec.c

Modified: trunk/libavformat/flvdec.c
==============================================================================
--- trunk/libavformat/flvdec.c	(original)
+++ trunk/libavformat/flvdec.c	Wed Oct 31 23:10:34 2007
@@ -309,8 +309,7 @@ static int flv_read_packet(AVFormatConte
     }
     if(i == s->nb_streams){
         av_log(NULL, AV_LOG_ERROR, "invalid stream\n");
-        url_fseek(&s->pb, next, SEEK_SET);
-        continue;
+        st= create_stream(s, is_audio);
     }
 //    av_log(NULL, AV_LOG_DEBUG, "%d %X %d \n", is_audio, flags, st->discard);
     if(  (st->discard >= AVDISCARD_NONKEY && !((flags & FLV_VIDEO_FRAMETYPE_MASK) == FLV_FRAME_KEY ||         is_audio))




More information about the ffmpeg-cvslog mailing list