mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-03 13:32:10 +00:00
iff: fix bitrate computation for compressed audio stream
This commit is contained in:
parent
1af99b0292
commit
34f590b29b
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user