diff options
author | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2011-08-01 00:23:07 +0200 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2011-08-01 00:58:49 +0200 |
commit | b35477a2f203a64fddd1a3fa96d8d6682839f788 (patch) | |
tree | 2b8bf1fce507e11c8a818b0bfb82eb162330eb9a /libavformat | |
parent | 7747a091f57b1e995a524854b397925a38d82cfb (diff) | |
download | ffmpeg-b35477a2f203a64fddd1a3fa96d8d6682839f788.tar.gz |
Use av_get_bits_per_sample() for mBitsPerChannel in caf.
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/cafenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/cafenc.c b/libavformat/cafenc.c index c324b8ead4..2d64beca9a 100644 --- a/libavformat/cafenc.c +++ b/libavformat/cafenc.c @@ -139,7 +139,7 @@ static int caf_write_header(AVFormatContext *s) avio_wb32(pb, enc->block_align); //< mBytesPerPacket avio_wb32(pb, samples_per_packet(enc->codec_id, enc->channels)); //< mFramesPerPacket avio_wb32(pb, enc->channels); //< mChannelsPerFrame - avio_wb32(pb, enc->bits_per_coded_sample); //< mBitsPerChannel + avio_wb32(pb, av_get_bits_per_sample(enc->codec_id)); //< mBitsPerChannel if (enc->channel_layout) { ffio_wfourcc(pb, "chan"); |