diff options
author | Christophe Gisquet <christophe.gisquet@gmail.com> | 2015-03-14 14:30:18 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-03-14 20:06:47 +0100 |
commit | 238db7cc56be4c4e71ff98758b7b8ef077ebd4ca (patch) | |
tree | 1581ad4da00380878e30c78ee1d041ef30bf9180 /libavcodec/x86/vc1dsp_mmx.c | |
parent | 98cccdd91c9aab9e031753f6feb81be0c44a9c8e (diff) | |
download | ffmpeg-238db7cc56be4c4e71ff98758b7b8ef077ebd4ca.tar.gz |
x86: lavc: use LOCAL_ALIGNED instead of DECLARE_ALIGNED
The later may yield incorrect code for on-stack variables.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/x86/vc1dsp_mmx.c')
-rw-r--r-- | libavcodec/x86/vc1dsp_mmx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/x86/vc1dsp_mmx.c b/libavcodec/x86/vc1dsp_mmx.c index 77a8e359ff..f11170c075 100644 --- a/libavcodec/x86/vc1dsp_mmx.c +++ b/libavcodec/x86/vc1dsp_mmx.c @@ -446,7 +446,7 @@ static void OP ## vc1_mspel_mc(uint8_t *dst, const uint8_t *src, int stride,\ static const int shift_value[] = { 0, 5, 1, 5 };\ int shift = (shift_value[hmode]+shift_value[vmode])>>1;\ int r;\ - DECLARE_ALIGNED(16, int16_t, tmp)[12*8];\ + LOCAL_ALIGNED(16, int16_t, tmp, [12*8]);\ \ r = (1<<(shift-1)) + rnd-1;\ vc1_put_shift_ver_16bits[vmode](tmp, src-1, stride, r, shift);\ |