[FFmpeg-devel] [PATCH 3/5] ppc: libswscale: use LOCAL_ALIGNED instead of DECLARE_ALIGNED

2015-03-14 Thread Christophe Gisquet
The later may yield incorrect code for on-stack variables.
---
 libswscale/ppc/swscale_altivec.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libswscale/ppc/swscale_altivec.c b/libswscale/ppc/swscale_altivec.c
index a1548a7..3034c72 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++) {
-- 
1.9.2.msysgit.0

___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel


Re: [FFmpeg-devel] [PATCH 3/5] ppc: libswscale: use LOCAL_ALIGNED instead of DECLARE_ALIGNED

2015-03-14 Thread Michael Niedermayer
On Sat, Mar 14, 2015 at 03:30:26PM +, Christophe Gisquet wrote:
 The later may yield incorrect code for on-stack variables.
 ---
  libswscale/ppc/swscale_altivec.c | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)

applied

thanks

[...]
-- 
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Dictatorship naturally arises out of democracy, and the most aggravated
form of tyranny and slavery out of the most extreme liberty. -- Plato


signature.asc
Description: Digital signature
___
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel