[FFmpeg-devel] [PATCH] flvdec: Remove AVFMTCTX_NOHEADER when there is only 1 stream

Michael Niedermayer michaelni at gmx.at
Wed Sep 7 13:08:16 CEST 2011

On Wed, Sep 07, 2011 at 11:07:56AM +0100, Asad Mehmood wrote:
> Hi
> I've written a patch which will unset the NOHEADER flag when a flv's metadata
> contains hasAudio false or hasVideo false. This allows an flv with only 1 stream
> to be played without waiting for av_find_stream_info to read upto probesize
> which is very slow when playing flv's over the network.

this seems missing a check that there is actually one stream and not

Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Many things microsoft did are stupid, but not doing something just because
microsoft did it is even more stupid. If everything ms did were stupid they
would be bankrupt already.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20110907/133899fe/attachment.asc>

More information about the ffmpeg-devel mailing list