[FFmpeg-cvslog] matroskaenc: Implement support for ALAC

Moritz Bunkus git at videolan.org
Sun Aug 5 18:34:40 CEST 2012


ffmpeg | branch: master | Moritz Bunkus <moritz at bunkus.org> | Sun Aug  5 18:34:28 2012 +0200| [fe40dc1cecdf152ffacff6df1d9c5f0c7daced85] | committer: Carl Eugen Hoyos

matroskaenc: Implement support for ALAC

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=fe40dc1cecdf152ffacff6df1d9c5f0c7daced85
---

 libavformat/matroskaenc.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavformat/matroskaenc.c b/libavformat/matroskaenc.c
index f5fdaae..30885a1 100644
--- a/libavformat/matroskaenc.c
+++ b/libavformat/matroskaenc.c
@@ -475,6 +475,8 @@ static int mkv_write_codecprivate(AVFormatContext *s, AVIOContext *pb, AVCodecCo
             ret = ff_flac_write_header(dyn_cp, codec, 1);
         else if (codec->codec_id == CODEC_ID_H264)
             ret = ff_isom_write_avcc(dyn_cp, codec->extradata, codec->extradata_size);
+        else if (codec->codec_id == CODEC_ID_ALAC && (12 < codec->extradata_size))
+            ret = ff_isom_write_avcc(dyn_cp, codec->extradata + 12, codec->extradata_size - 12);
         else if (codec->extradata_size)
             avio_write(dyn_cp, codec->extradata, codec->extradata_size);
     } else if (codec->codec_type == AVMEDIA_TYPE_VIDEO) {



More information about the ffmpeg-cvslog mailing list