# HG changeset patch # User michael # Date 1208175869 0 # Node ID d5b42f34563865e1caa7f5aad23109b92458e451 # Parent 71e9ee649f03a0fafffdd99098bd9eb9da97fea5 Recommit r12809 Log: 10l Setting AVFMTCTX_NOHEADER if streams<2 so phantom streams are found. fixes WELCOMETOBELGRADE.flv After seeking bug has been fixed. diff -r 71e9ee649f03 -r d5b42f345638 flvdec.c --- a/flvdec.c Mon Apr 14 12:22:23 2008 +0000 +++ b/flvdec.c Mon Apr 14 12:24:29 2008 +0000 @@ -257,6 +257,10 @@ 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);