Revision b41497e9

View differences:

libavformat/flvdec.c
257 257
        av_log(s, AV_LOG_WARNING, "Broken FLV file, which says no streams present, this might fail\n");
258 258
    }
259 259

  
260
    if((flags & (FLV_HEADER_FLAG_HASVIDEO|FLV_HEADER_FLAG_HASAUDIO))
261
             != (FLV_HEADER_FLAG_HASVIDEO|FLV_HEADER_FLAG_HASAUDIO))
262
        s->ctx_flags |= AVFMTCTX_NOHEADER;
263

  
260 264
    if(flags & FLV_HEADER_FLAG_HASVIDEO){
261 265
        if(!create_stream(s, 0))
262 266
            return AVERROR(ENOMEM);

Also available in: Unified diff