mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
Fix wma2 audio decoder
Patch by Reimar Doeffinger Originally committed as revision 4779 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
76bec1d85c
commit
b6204677f6
@ -284,7 +284,7 @@ static int wma_decode_init(AVCodecContext * avctx)
|
||||
}
|
||||
|
||||
bps = (float)s->bit_rate / (float)(s->nb_channels * s->sample_rate);
|
||||
s->byte_offset_bits = av_log2((int)(bps * s->frame_len / 8.0)) + 2;
|
||||
s->byte_offset_bits = av_log2((int)(bps * s->frame_len / 8.0 + 0.5)) + 2;
|
||||
|
||||
/* compute high frequency value and choose if noise coding should
|
||||
be activated */
|
||||
|
Loading…
Reference in New Issue
Block a user