diff options
author | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2011-05-17 01:56:01 +0200 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2011-05-17 01:56:01 +0200 |
commit | f2962ac8ad353c12d81bc515a01427f0912b4a69 (patch) | |
tree | 5cf960e9b9dd9dbc148953fd052987d1c101c942 /libavformat/aiffenc.c | |
parent | 6d721f714ee61d6e244b980113aa24d5afcbfee0 (diff) | |
download | ffmpeg-f2962ac8ad353c12d81bc515a01427f0912b4a69.tar.gz |
Write channel_layout for multichannel aif files.
Diffstat (limited to 'libavformat/aiffenc.c')
-rw-r--r-- | libavformat/aiffenc.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libavformat/aiffenc.c b/libavformat/aiffenc.c index cc3cbc4762..34ab0cc246 100644 --- a/libavformat/aiffenc.c +++ b/libavformat/aiffenc.c @@ -22,6 +22,7 @@ #include "avformat.h" #include "aiff.h" #include "avio_internal.h" +#include "isom.h" typedef struct { int64_t form; @@ -61,6 +62,12 @@ static int aiff_write_header(AVFormatContext *s) avio_wb32(pb, 0xA2805140); } + if (enc->channels > 2 && enc->channel_layout) { + ffio_wfourcc(pb, "CHAN"); + avio_wb32(pb, 12); + ff_mov_write_chan(pb, enc->channel_layout); + } + /* Common chunk */ ffio_wfourcc(pb, "COMM"); avio_wb32(pb, aifc ? 24 : 18); /* size */ |