changeset 2992:f74ae8aff2a9 libavcodec

Fix wma2 audio decoder Patch by Reimar Doeffinger
author rtognimp
date Tue, 27 Dec 2005 19:58:04 +0000
parents d377b0788381
children cb0e26759cca
files wmadec.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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 */