[FFmpeg-cvslog] r15261 - trunk/libavcodec/mdct.c

michael subversion
Mon Sep 8 15:37:13 CEST 2008


Author: michael
Date: Mon Sep  8 15:37:12 2008
New Revision: 15261

Log:
Try to fix wma regression.


Modified:
   trunk/libavcodec/mdct.c

Modified: trunk/libavcodec/mdct.c
==============================================================================
--- trunk/libavcodec/mdct.c	(original)
+++ trunk/libavcodec/mdct.c	Mon Sep  8 15:37:12 2008
@@ -59,10 +59,9 @@ float *ff_sine_windows[5] = {
 
 // Generate a sine window.
 void ff_sine_window_init(float *window, int n) {
-    float alpha = M_PI / (2.0 * n);
     int i;
     for(i = 0; i < n; i++)
-        window[i] = sin((i + 0.5) * alpha);
+        window[i] = sinf((i + 0.5) * (M_PI / (2.0 * n)));
 }
 
 /**




More information about the ffmpeg-cvslog mailing list