Commit 8c591a66 authored by aurel's avatar aurel

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.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@14982 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 1d72382c
......@@ -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);
}
/**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment