diff options
author | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2011-05-10 15:40:03 +0200 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2011-05-17 00:53:43 +0200 |
commit | 34f590b29bc427036b6cb030bcc23d120316c20f (patch) | |
tree | 18c385b6f65e448dc22d4ec0a07b0c9687b4f699 | |
parent | 1af99b0292b7e27f989ecf817a09e2b29976490f (diff) | |
download | ffmpeg-34f590b29bc427036b6cb030bcc23d120316c20f.tar.gz |
iff: fix bitrate computation for compressed audio stream
-rw-r--r-- | libavformat/iff.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/iff.c b/libavformat/iff.c index 54226dc3de..b57f0ee279 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; |