Mercurial > libavcodec.hg
diff wmaprodec.c @ 10174:89cd870ca180 libavcodec
Add two more sizes to ff_sine_windows[] and also pad it with NULLs so
that FF_ELEMS(ff_sine_windows[x]) == 1 << x.
Fix issue 1384.
author | vitor |
---|---|
date | Tue, 15 Sep 2009 16:18:16 +0000 |
parents | b30c708ce76a |
children | a514a601bf26 |
line wrap: on
line diff
--- a/wmaprodec.c Tue Sep 15 15:06:04 2009 +0000 +++ b/wmaprodec.c Tue Sep 15 16:18:16 2009 +0000 @@ -426,7 +426,7 @@ /** init MDCT windows: simple sinus window */ for (i = 0; i < WMAPRO_BLOCK_SIZES; i++) { const int n = 1 << (WMAPRO_BLOCK_MAX_BITS - i); - const int win_idx = WMAPRO_BLOCK_MAX_BITS - i - 7; + const int win_idx = WMAPRO_BLOCK_MAX_BITS - i; ff_sine_window_init(ff_sine_windows[win_idx], n); s->windows[WMAPRO_BLOCK_SIZES - i - 1] = ff_sine_windows[win_idx]; }