avcodecmap: exclude avc3 stream format from AV_CODEC_ID_H264
authorAlex Ashley <bugzilla@ashley-family.net>
Fri, 30 Aug 2013 10:48:51 +0000 (11:48 +0100)
committerSebastian Dröge <slomo@circular-chaos.org>
Wed, 4 Sep 2013 11:34:00 +0000 (13:34 +0200)
commit61153a5ac231141e4395b9f0bb28a26fa808a098
tree4a505faf5d48cb3ece1a1d0a0c0c939eba5f1b77
parent690ca42e6e099e36063494face393725edd42ee8
avcodecmap: exclude avc3 stream format from AV_CODEC_ID_H264

As part of the changes to support the "avc3" variant of the ISO-BMFF
(see bug #702004) a new stream-format has been created
(video/x-h264, stream-format="avc3", alignment="au") that requires
changes to gstavcodecmap to exclude this format because avdec_h264
expects the SPS and PPS to be in the codec_data.

Amendment 2 of ISO/IEC 14496-15 (AVC file format) is defining a new
structure for fragmented MP4 called "avc3". The principal difference
between AVC1 and AVC3 is the location of the codec initialisation data
(e.g. SPS, PPS). In AVC1 this data is placed in the initial MOOV box
(moov.trak.mdia.minf.stbl.stsd.avc1) but in AVC3 this data goes in the
first sample of every fragment.

https://bugzilla.gnome.org/show_bug.cgi?id=702004
ext/libav/gstavcodecmap.c