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

Michael Niedermayer michaelni at gmx.at
Thu Sep 8 00:30:58 CEST 2011


On Wed, Sep 07, 2011 at 11:18:07PM +0100, Asad Mehmood wrote:
> 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.

patch locally applied, ill push after a bit of testing

thanks

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

The misfortune of the wise is better than the prosperity of the fool.
-- Epicurus
-------------- 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/20110908/1e232cb7/attachment.asc>


More information about the ffmpeg-devel mailing list