matroska: implement support for ALAC
authorMoritz Bunkus <moritz@bunkus.org>
Fri, 14 Sep 2012 20:26:14 +0000 (22:26 +0200)
committerLuca Barbato <lu_zero@gentoo.org>
Wed, 19 Sep 2012 18:34:14 +0000 (20:34 +0200)
commit8071dca3d595a4fc5f9b3ee9f667e2c3e4a35517
tree95c59a49002c12171dde2bf8132ff69cd015fe43
parent870e75524aa0d00ebcd1d15589c8d29b84af1565
matroska: implement support for ALAC

Support Matroska native formatting.

On demuxing reconstruct the 36-bytes QuickTime atom that the ALAC
decoder expects by prepending the "atom size", "tag" and
"tag version" fields missing from the Matroska's CodecPrivate
element.

On muxing remove the initial 12 bytes

Sample files are available:
http://www.bunkus.org/videotools/mkvtoolnix/samples/alac/alac-in-matroska.mka
and the CoreAudio file it was created from with today's mkvmerge:
http://www.bunkus.org/videotools/mkvtoolnix/samples/alac/alac-in-matroska-source.caf

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
libavformat/matroska.c
libavformat/matroskadec.c
libavformat/matroskaenc.c