diff options
author | Ronald S. Bultje <rsbultje@gmail.com> | 2012-06-14 11:47:55 +0100 |
---|---|---|
committer | Mans Rullgard <mans@mansr.com> | 2012-06-17 23:20:10 +0100 |
commit | d9669eab0b8709f66d0872671511cb9487ea2651 (patch) | |
tree | e5bfe25fa298d33761ef5e4ee6a01f9198bcaed6 /libavcodec/x86 | |
parent | 8e50c57dcb481479f2fd46f9bdb6a9776b0d9fa6 (diff) | |
download | ffmpeg-d9669eab0b8709f66d0872671511cb9487ea2651.tar.gz |
dwt: remove variable-length arrays
Signed-off-by: Mans Rullgard <mans@mansr.com>
Diffstat (limited to 'libavcodec/x86')
-rw-r--r-- | libavcodec/x86/snowdsp_mmx.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/libavcodec/x86/snowdsp_mmx.c b/libavcodec/x86/snowdsp_mmx.c index 00b62616cb..729a13a4ce 100644 --- a/libavcodec/x86/snowdsp_mmx.c +++ b/libavcodec/x86/snowdsp_mmx.c @@ -26,9 +26,8 @@ #include "libavcodec/dwt.h" #include "dsputil_mmx.h" -static void ff_snow_horizontal_compose97i_sse2(IDWTELEM *b, int width){ +static void ff_snow_horizontal_compose97i_sse2(IDWTELEM *b, IDWTELEM *temp, int width){ const int w2= (width+1)>>1; - DECLARE_ALIGNED(16, IDWTELEM, temp)[width>>1]; const int w_l= (width>>1); const int w_r= w2 - 1; int i; @@ -215,9 +214,8 @@ static void ff_snow_horizontal_compose97i_sse2(IDWTELEM *b, int width){ } } -static void ff_snow_horizontal_compose97i_mmx(IDWTELEM *b, int width){ +static void ff_snow_horizontal_compose97i_mmx(IDWTELEM *b, IDWTELEM *temp, int width){ const int w2= (width+1)>>1; - IDWTELEM temp[width >> 1]; const int w_l= (width>>1); const int w_r= w2 - 1; int i; |