[FFmpeg-cvslog] r14982 - trunk/libavcodec/mdct.c
aurel
subversion
Tue Aug 26 21:40:53 CEST 2008
Author: aurel
Date: Tue Aug 26 21:40:53 2008
New Revision: 14982
Log:
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.
Modified:
trunk/libavcodec/mdct.c
Modified: trunk/libavcodec/mdct.c
==============================================================================
--- trunk/libavcodec/mdct.c (original)
+++ trunk/libavcodec/mdct.c Tue Aug 26 21:40:53 2008
@@ -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);
}
/**
More information about the ffmpeg-cvslog
mailing list