summaryrefslogtreecommitdiff
path: root/libavcodec/mdct.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2008-09-08 13:37:12 +0000
committerMichael Niedermayer <michaelni@gmx.at>2008-09-08 13:37:12 +0000
commit71375e05006e68fecdeb8d5fa80c3cce52a5cf86 (patch)
treeec01497e4e55db91332a3df2727400de21e664e3 /libavcodec/mdct.c
parent6bc0c7928a386d5cf99c198ec1b795aff6bf7656 (diff)
downloadffmpeg-71375e05006e68fecdeb8d5fa80c3cce52a5cf86.tar.gz
Try to fix wma regression.
Originally committed as revision 15261 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mdct.c')
-rw-r--r--libavcodec/mdct.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/mdct.c b/libavcodec/mdct.c
index 0447c64124..c85b82f9db 100644
--- a/libavcodec/mdct.c
+++ b/libavcodec/mdct.c
@@ -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)));
}
/**