From 6776061b04b6f9f669d8ec59f6112e8a9b1dad92 Mon Sep 17 00:00:00 2001 From: Vitor Sessak Date: Tue, 15 Sep 2009 16:18:16 +0000 Subject: 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 --- libavcodec/mdct.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'libavcodec/mdct.c') 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 }; -- cgit v1.2.3