Commit 34f590b2 authored by Stefano Sabatini's avatar Stefano Sabatini

iff: fix bitrate computation for compressed audio stream

parent 1af99b02
...@@ -280,7 +280,7 @@ static int iff_read_header(AVFormatContext *s, ...@@ -280,7 +280,7 @@ static int iff_read_header(AVFormatContext *s,
return -1; 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->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; st->codec->block_align = st->codec->channels * st->codec->bits_per_coded_sample;
break; break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment