diff options
author | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2011-05-17 01:47:12 +0200 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2011-05-17 01:47:12 +0200 |
commit | 6d721f714ee61d6e244b980113aa24d5afcbfee0 (patch) | |
tree | 1bf68ef3c6ecb7011698999d3b820875a0d08d96 /libavformat/cafenc.c | |
parent | d2549ba9df1a1aac8c0ae19bfca2c81e508ba02e (diff) | |
download | ffmpeg-6d721f714ee61d6e244b980113aa24d5afcbfee0.tar.gz |
Fix ff_mov_write_chan() so it can be used by other muxers.
Diffstat (limited to 'libavformat/cafenc.c')
-rw-r--r-- | libavformat/cafenc.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libavformat/cafenc.c b/libavformat/cafenc.c index 0f33c6b592..13636f30ee 100644 --- a/libavformat/cafenc.c +++ b/libavformat/cafenc.c @@ -134,7 +134,11 @@ static int caf_write_header(AVFormatContext *s) avio_wb32(pb, enc->channels); //< mChannelsPerFrame avio_wb32(pb, enc->bits_per_coded_sample); //< mBitsPerChannel - ff_mov_write_chan(s, enc->channel_layout, "chan"); + if (enc->channel_layout) { + ffio_wfourcc(pb, "chan"); + avio_wb64(pb, 12); + ff_mov_write_chan(pb, enc->channel_layout); + } ffio_wfourcc(pb, "data"); //< Audio Data chunk caf->data = avio_tell(pb); |