changeset 3216:0ece8d5c42d8 libavformat

revert r12809 Log: 10l Setting AVFMTCTX_NOHEADER if streams<2 so phantom streams are found. fixes WELCOMETOBELGRADE.flv As it unexpectly breaks seek regression tests.
author michael
date Mon, 14 Apr 2008 12:10:53 +0000
parents 4efe0debe0cf
children 71e9ee649f03
files flvdec.c
diffstat 1 files changed, 0 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/flvdec.c	Sun Apr 13 23:47:03 2008 +0000
+++ b/flvdec.c	Mon Apr 14 12:10:53 2008 +0000
@@ -256,9 +256,6 @@
         flags = FLV_HEADER_FLAG_HASVIDEO | FLV_HEADER_FLAG_HASAUDIO;
         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))