# HG changeset patch # User aurel # Date 1219779653 0 # Node ID 4b286498a3bd0f46674b4f8f87d4a2cdd30ca00b # Parent 370c30bfd3a15477d868c698a24e909a5af9f242 Add a temp variable to ff_sine_window_init() to match the way wma.c computed window before r14757. This fixes a regression introduced by r14757 on amd64. diff -r 370c30bfd3a1 -r 4b286498a3bd mdct.c --- a/mdct.c Tue Aug 26 19:38:17 2008 +0000 +++ b/mdct.c Tue Aug 26 19:40:53 2008 +0000 @@ -59,9 +59,10 @@ // 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) / (2 * n) * M_PI); + window[i] = sin((i + 0.5) * alpha); } /**