Mercurial > libavcodec.hg
changeset 7699:4b286498a3bd libavcodec
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.
author | aurel |
---|---|
date | Tue, 26 Aug 2008 19:40:53 +0000 |
parents | 370c30bfd3a1 |
children | 53fb5eb360d5 |
files | mdct.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mdct.c Tue Aug 26 19:38:17 2008 +0000 +++ b/mdct.c Tue Aug 26 19:40:53 2008 +0000 @@ -59,9 +59,10 @@ // 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); } /**