[FFmpeg-cvslog] iff: fix bitrate computation for compressed audio stream

Stefano Sabatini git at videolan.org
Tue May 17 01:07:43 CEST 2011


ffmpeg | branch: master | Stefano Sabatini <stefano.sabatini-lala at poste.it> | Tue May 10 15:40:03 2011 +0200| [34f590b29bc427036b6cb030bcc23d120316c20f] | committer: Stefano Sabatini

iff: fix bitrate computation for compressed audio stream

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

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

diff --git a/libavformat/iff.c b/libavformat/iff.c
index 54226dc..b57f0ee 100644
--- a/libavformat/iff.c
+++ b/libavformat/iff.c
@@ -280,7 +280,7 @@ static int iff_read_header(AVFormatContext *s,
             return -1;
         }
 
-        st->codec->bits_per_coded_sample = 8;
+        st->codec->bits_per_coded_sample = iff->svx8_compression == COMP_NONE ? 8 : 4;
         st->codec->bit_rate = st->codec->channels * st->codec->sample_rate * st->codec->bits_per_coded_sample;
         st->codec->block_align = st->codec->channels * st->codec->bits_per_coded_sample;
         break;



More information about the ffmpeg-cvslog mailing list