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

michael subversion
Mon Apr 14 14:24:29 CEST 2008


Author: michael
Date: Mon Apr 14 14:24:29 2008
New Revision: 12813

Log:
Recommit r12809
	Log:
	10l
	Setting AVFMTCTX_NOHEADER if streams<2 so phantom streams are found.
	fixes WELCOMETOBELGRADE.flv
After seeking bug has been fixed.


Modified:
   trunk/libavformat/flvdec.c

Modified: trunk/libavformat/flvdec.c
==============================================================================
--- trunk/libavformat/flvdec.c	(original)
+++ trunk/libavformat/flvdec.c	Mon Apr 14 14:24:29 2008
@@ -257,6 +257,10 @@ static int flv_read_header(AVFormatConte
         av_log(s, AV_LOG_WARNING, "Broken FLV file, which says no streams present, this might fail\n");
     }
 
+    if((flags & (FLV_HEADER_FLAG_HASVIDEO|FLV_HEADER_FLAG_HASAUDIO))
+             != (FLV_HEADER_FLAG_HASVIDEO|FLV_HEADER_FLAG_HASAUDIO))
+        s->ctx_flags |= AVFMTCTX_NOHEADER;
+
     if(flags & FLV_HEADER_FLAG_HASVIDEO){
         if(!create_stream(s, 0))
             return AVERROR(ENOMEM);




More information about the ffmpeg-cvslog mailing list