[Ffmpeg-cvslog] CVS: ffmpeg/libavcodec wmadec.c,1.26,1.27

Roberto Togni CVS rtognimp
Tue Dec 27 20:58:07 CET 2005


Update of /cvsroot/ffmpeg/ffmpeg/libavcodec
In directory mail:/var2/tmp/cvs-serv7877

Modified Files:
	wmadec.c 
Log Message:
Fix wma2 audio decoder
Patch by Reimar Doeffinger


Index: wmadec.c
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/libavcodec/wmadec.c,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -d -r1.26 -r1.27
--- wmadec.c	17 Dec 2005 18:14:31 -0000	1.26
+++ wmadec.c	27 Dec 2005 19:58:04 -0000	1.27
@@ -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 */





More information about the ffmpeg-cvslog mailing list