diff options
author | Christophe Gisquet <christophe.gisquet@gmail.com> | 2015-03-14 15:30:27 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-03-14 19:07:27 +0100 |
commit | 98cccdd91c9aab9e031753f6feb81be0c44a9c8e (patch) | |
tree | f63e8eb409d1caf0944840e03c86dec4630d659c /libavcodec/ppc/vp8dsp_altivec.c | |
parent | 5d38c628b0a84fafc220f070d9d4cf8fbfe96447 (diff) | |
download | ffmpeg-98cccdd91c9aab9e031753f6feb81be0c44a9c8e.tar.gz |
ppc: 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/ppc/vp8dsp_altivec.c')
-rw-r--r-- | libavcodec/ppc/vp8dsp_altivec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/ppc/vp8dsp_altivec.c b/libavcodec/ppc/vp8dsp_altivec.c index 23e4ace7da..82e7c2b6f9 100644 --- a/libavcodec/ppc/vp8dsp_altivec.c +++ b/libavcodec/ppc/vp8dsp_altivec.c @@ -270,7 +270,7 @@ void put_vp8_epel ## WIDTH ## _v ## TAPS ## _altivec(uint8_t *dst, ptrdiff_t dst #define EPEL_HV(WIDTH, HTAPS, VTAPS) \ static void put_vp8_epel ## WIDTH ## _h ## HTAPS ## v ## VTAPS ## _altivec(uint8_t *dst, ptrdiff_t dstride, uint8_t *src, ptrdiff_t sstride, int h, int mx, int my) \ { \ - DECLARE_ALIGNED(16, uint8_t, tmp)[(2*WIDTH+5)*16]; \ + LOCAL_ALIGNED(16, uint8_t, tmp, [(2*WIDTH+5)*16]); \ if (VTAPS == 6) { \ put_vp8_epel ## WIDTH ## _h ## HTAPS ## _altivec(tmp, 16, src-2*sstride, sstride, h+5, mx, my); \ put_vp8_epel ## WIDTH ## _v ## VTAPS ## _altivec(dst, dstride, tmp+2*16, 16, h, mx, my); \ |