# HG changeset patch # User rtognimp # Date 1135713484 0 # Node ID f74ae8aff2a908eeae8ee4c84cb08107cbf3ab11 # Parent d377b0788381f57c9bce818f2a3f283dd5181de1 Fix wma2 audio decoder Patch by Reimar Doeffinger diff -r d377b0788381 -r f74ae8aff2a9 wmadec.c --- a/wmadec.c Sun Dec 25 22:38:21 2005 +0000 +++ b/wmadec.c Tue Dec 27 19:58:04 2005 +0000 @@ -284,7 +284,7 @@ } 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 */