Commit be44650a authored by rtognimp's avatar rtognimp

Fix wma2 audio decoder

Patch by Reimar Doeffinger


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@4779 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent b109be69
......@@ -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 */
......
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