1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

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>
This commit is contained in:
Christophe Gisquet 2015-03-14 15:30:26 +00:00 committed by Michael Niedermayer
parent a48b24e5eb
commit 5d38c628b0

View File

@ -90,7 +90,7 @@ static void yuv2planeX_16_altivec(const int16_t *filter, int filterSize,
const uint8_t *dither, int offset, int x) const uint8_t *dither, int offset, int x)
{ {
register int i, j; register int i, j;
DECLARE_ALIGNED(16, int, val)[16]; LOCAL_ALIGNED(16, int, val, [16]);
vector signed int vo1, vo2, vo3, vo4; vector signed int vo1, vo2, vo3, vo4;
vector unsigned short vs1, vs2; vector unsigned short vs1, vs2;
vector unsigned char vf; 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) const int32_t *filterPos, int filterSize)
{ {
register int i; register int i;
DECLARE_ALIGNED(16, int, tempo)[4]; LOCAL_ALIGNED(16, int, tempo, [4]);
if (filterSize % 4) { if (filterSize % 4) {
for (i = 0; i < dstW; i++) { for (i = 0; i < dstW; i++) {