Skip to content
Snippets Groups Projects
Commit 71375e05 authored by Michael Niedermayer's avatar Michael Niedermayer
Browse files

Try to fix wma regression.

Originally committed as revision 15261 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 6bc0c792
No related branches found
No related tags found
No related merge requests found
...@@ -59,10 +59,9 @@ float *ff_sine_windows[5] = { ...@@ -59,10 +59,9 @@ float *ff_sine_windows[5] = {
// Generate a sine window. // Generate a sine window.
void ff_sine_window_init(float *window, int n) { void ff_sine_window_init(float *window, int n) {
float alpha = M_PI / (2.0 * n);
int i; int i;
for(i = 0; i < n; 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)));
} }
/** /**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment