aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/x86
diff options
context:
space:
mode:
authorMans Rullgard <mans@mansr.com>2010-06-25 02:37:22 +0100
committerMans Rullgard <mans@mansr.com>2011-01-18 20:48:24 +0000
commitac3c9d016917494e9cecb12f6e5a42fbd2e7adc1 (patch)
tree349ee5964d4419c3dfa7f7592a10a01d9dbbe1d0 /libavcodec/x86
parentee6184a8d921f22ecbb2b78819cb3d18685a389a (diff)
downloadffmpeg-ac3c9d016917494e9cecb12f6e5a42fbd2e7adc1.tar.gz
x86: remove VLA in ac3_downmix_sse
Diffstat (limited to 'libavcodec/x86')
-rw-r--r--libavcodec/x86/dsputil_mmx.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/x86/dsputil_mmx.c b/libavcodec/x86/dsputil_mmx.c
index 5d0467210a..d8edb0f3f0 100644
--- a/libavcodec/x86/dsputil_mmx.c
+++ b/libavcodec/x86/dsputil_mmx.c
@@ -28,6 +28,7 @@
#include "libavcodec/h264dsp.h"
#include "libavcodec/mpegvideo.h"
#include "libavcodec/simple_idct.h"
+#include "libavcodec/ac3dec.h"
#include "dsputil_mmx.h"
#include "idct_xvid.h"
@@ -2049,7 +2050,7 @@ static void ac3_downmix_sse(float (*samples)[256], float (*matrix)[2], int out_c
} else if(in_ch == 5 && out_ch == 1 && matrix_cmp[0][0]==matrix_cmp[2][0] && matrix_cmp[3][0]==matrix_cmp[4][0]) {
MIX5(IF1,IF0);
} else {
- DECLARE_ALIGNED(16, float, matrix_simd)[in_ch][2][4];
+ DECLARE_ALIGNED(16, float, matrix_simd)[AC3_MAX_CHANNELS][2][4];
j = 2*in_ch*sizeof(float);
__asm__ volatile(
"1: \n"