[FFmpeg-devel] flv decoder question

Justin Ruggles justin.ruggles
Sun Jul 26 02:41:27 CEST 2009


Hi,

Can someone who knows about the FLV decoder explain these lines in
flv_read_header()?

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

I ask because it is causing av_find_stream_info() to read way more data
than necessary for audio-only FLV files containing Speex.

Thanks,
Justin



More information about the ffmpeg-devel mailing list