[FFmpeg-devel] [PATCH] flvdec: Remove AVFMTCTX_NOHEADER if both flags and metadata claim 1 stream

Asad Mehmood asad78611 at googlemail.com
Thu Sep 8 00:18:07 CEST 2011

I've come up with an updated patch ... I've looked through my flv's
and noticed that all of them contain metadata with audiocodecid and
videocodecid, even if the flv contains no audio.

According to spec audiocodecid should be a number. In the flv's with
no audio audiocodecid is an empty AMF OBJECT.

I believe this patch is better than checking for hasAudio or hasVideo.
If someone has an flv with a single stream and the codecid is not an
AMF OBJECT. I would like to know.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-flvdec-Remove-AVFMTCTX_NOHEADER-if-both-flags-and-me.patch
Type: text/x-patch
Size: 1427 bytes
Desc: not available
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20110907/378bb9e0/attachment.bin>

More information about the ffmpeg-devel mailing list