[FFmpeg-devel] flv decoder question
Baptiste Coudurier
baptiste.coudurier
Sun Jul 26 03:43:02 CEST 2009
On 07/25/2009 05:41 PM, Justin Ruggles wrote:
> 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.
The idea is to read packets to create streams if flags is wrongly set,
but the check will cause NOHEADER to be always be set audio only or
video only files.
--
Baptiste COUDURIER GnuPG Key Id: 0x5C1ABAAA
Key fingerprint 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA
FFmpeg maintainer http://www.ffmpeg.org
More information about the ffmpeg-devel
mailing list