summaryrefslogtreecommitdiff
path: root/libavcodec/x86/rv40dsp_init.c
diff options
context:
space:
mode:
authorChristophe Gisquet <christophe.gisquet@gmail.com>2015-03-14 14:30:18 +0100
committerMichael Niedermayer <michaelni@gmx.at>2015-03-14 20:06:47 +0100
commit238db7cc56be4c4e71ff98758b7b8ef077ebd4ca (patch)
tree1581ad4da00380878e30c78ee1d041ef30bf9180 /libavcodec/x86/rv40dsp_init.c
parent98cccdd91c9aab9e031753f6feb81be0c44a9c8e (diff)
downloadffmpeg-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/rv40dsp_init.c')
-rw-r--r--libavcodec/x86/rv40dsp_init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/x86/rv40dsp_init.c b/libavcodec/x86/rv40dsp_init.c
index 2900e2d2d3..bbf9c785f6 100644
--- a/libavcodec/x86/rv40dsp_init.c
+++ b/libavcodec/x86/rv40dsp_init.c
@@ -82,7 +82,7 @@ static void OP ## rv40_qpel ##SIZE ##_mc ##PH ##PV ##OPT(uint8_t *dst, \
{ \
int i; \
if (PH && PV) { \
- DECLARE_ALIGNED(16, uint8_t, tmp)[SIZE * (SIZE + 5)]; \
+ LOCAL_ALIGNED(16, uint8_t, tmp, [SIZE * (SIZE + 5)]); \
uint8_t *tmpptr = tmp + SIZE * 2; \
src -= stride * 2; \
\