[FFmpeg-cvslog] Use av_get_bits_per_sample() for mBitsPerChannel in caf.

Carl Eugen Hoyos git at videolan.org
Mon Aug 1 01:03:03 CEST 2011


ffmpeg | branch: master | Carl Eugen Hoyos <cehoyos at ag.or.at> | Mon Aug  1 00:23:07 2011 +0200| [b35477a2f203a64fddd1a3fa96d8d6682839f788] | committer: Carl Eugen Hoyos

Use av_get_bits_per_sample() for mBitsPerChannel in caf.

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

 libavformat/cafenc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavformat/cafenc.c b/libavformat/cafenc.c
index c324b8e..2d64bec 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");



More information about the ffmpeg-cvslog mailing list