Mercurial > libavformat.hg
changeset 3214:e24c36cb72a5 libavformat
10l
Setting AVFMTCTX_NOHEADER if streams<2 so phantom streams are found.
fixes WELCOMETOBELGRADE.flv
author | michael |
---|---|
date | Sun, 13 Apr 2008 22:58:04 +0000 |
parents | d5ad219a794f |
children | 4efe0debe0cf |
files | flvdec.c |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/flvdec.c Sun Apr 13 21:06:31 2008 +0000 +++ b/flvdec.c Sun Apr 13 22:58:04 2008 +0000 @@ -256,6 +256,9 @@ 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))