aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristophe Gisquet <christophe.gisquet@gmail.com>2015-03-14 15:30:26 +0000
committerMichael Niedermayer <michaelni@gmx.at>2015-03-14 18:39:28 +0100
commit5d38c628b0a84fafc220f070d9d4cf8fbfe96447 (patch)
tree2c2185f65c572b7b2f656a4df50978a0b30ebbc9
parenta48b24e5ebdb21d25512ac481a1d396e7685f0a4 (diff)
downloadffmpeg-5d38c628b0a84fafc220f070d9d4cf8fbfe96447.tar.gz
ppc: libswscale: 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>
-rw-r--r--libswscale/ppc/swscale_altivec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libswscale/ppc/swscale_altivec.c b/libswscale/ppc/swscale_altivec.c
index a1548a7717..3034c726e7 100644
--- a/libswscale/ppc/swscale_altivec.c
+++ b/libswscale/ppc/swscale_altivec.c
@@ -90,7 +90,7 @@ static void yuv2planeX_16_altivec(const int16_t *filter, int filterSize,
const uint8_t *dither, int offset, int x)
{
register int i, j;
- DECLARE_ALIGNED(16, int, val)[16];
+ LOCAL_ALIGNED(16, int, val, [16]);
vector signed int vo1, vo2, vo3, vo4;
vector unsigned short vs1, vs2;
vector unsigned char vf;
@@ -215,7 +215,7 @@ static void hScale_altivec_real(SwsContext *c, int16_t *dst, int dstW,
const int32_t *filterPos, int filterSize)
{
register int i;
- DECLARE_ALIGNED(16, int, tempo)[4];
+ LOCAL_ALIGNED(16, int, tempo, [4]);
if (filterSize % 4) {
for (i = 0; i < dstW; i++) {