diff options
author | Vitor Sessak <vitor1001@gmail.com> | 2009-09-15 16:18:16 +0000 |
---|---|---|
committer | Vitor Sessak <vitor1001@gmail.com> | 2009-09-15 16:18:16 +0000 |
commit | 6776061b04b6f9f669d8ec59f6112e8a9b1dad92 (patch) | |
tree | 6b2e9e739877b48d5dc177ef1572c060e3137ffa /libavcodec/mdct.c | |
parent | 05db409c280acc22362c2e79ea67abe3873043a5 (diff) | |
download | ffmpeg-6776061b04b6f9f669d8ec59f6112e8a9b1dad92.tar.gz |
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.
Originally committed as revision 19862 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mdct.c')
-rw-r--r-- | libavcodec/mdct.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libavcodec/mdct.c b/libavcodec/mdct.c index b6b9093e93..cb024aceda 100644 --- a/libavcodec/mdct.c +++ b/libavcodec/mdct.c @@ -48,13 +48,17 @@ av_cold void ff_kbd_window_init(float *window, float alpha, int n) window[i] = sqrt(local_window[i] / sum); } +DECLARE_ALIGNED(16, float, ff_sine_32 [ 32]); +DECLARE_ALIGNED(16, float, ff_sine_64 [ 64]); DECLARE_ALIGNED(16, float, ff_sine_128 [ 128]); DECLARE_ALIGNED(16, float, ff_sine_256 [ 256]); DECLARE_ALIGNED(16, float, ff_sine_512 [ 512]); DECLARE_ALIGNED(16, float, ff_sine_1024[1024]); DECLARE_ALIGNED(16, float, ff_sine_2048[2048]); DECLARE_ALIGNED(16, float, ff_sine_4096[4096]); -float * const ff_sine_windows[6] = { +float * const ff_sine_windows[] = { + NULL, NULL, NULL, NULL, NULL, // unused + ff_sine_32 , ff_sine_64 , ff_sine_128, ff_sine_256, ff_sine_512, ff_sine_1024, ff_sine_2048, ff_sine_4096 }; |