diff options
author | Aurelien Jacobs <aurel@gnuage.org> | 2008-08-26 19:40:53 +0000 |
---|---|---|
committer | Aurelien Jacobs <aurel@gnuage.org> | 2008-08-26 19:40:53 +0000 |
commit | 67f718bd11e2ac4f639568040ef6b2fda9a9ba86 (patch) | |
tree | 9924e99e23366d18795f9a7fd696912de6dca247 /libavcodec/mdct.c | |
parent | 2ccddc02111f316bdcb183f3ef1b2423eaf628d8 (diff) | |
download | ffmpeg-67f718bd11e2ac4f639568040ef6b2fda9a9ba86.tar.gz |
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.
Originally committed as revision 14982 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mdct.c')
-rw-r--r-- | libavcodec/mdct.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/mdct.c b/libavcodec/mdct.c index fe19f1ff3d..0447c64124 100644 --- a/libavcodec/mdct.c +++ b/libavcodec/mdct.c @@ -59,9 +59,10 @@ 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) / (2 * n) * M_PI); + window[i] = sin((i + 0.5) * alpha); } /** |