diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2011-06-01 22:15:36 +0200 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2011-06-02 08:38:09 +0200 |
commit | 3c194f390fe7e18a6e2e51eb4f29495eb230585e (patch) | |
tree | f7a1ad7c1d23f7759765343d308c5f30270bc9ad /libswscale/ppc | |
parent | 3379531c401b457c9f7437ee0db772da75fd1765 (diff) | |
download | ffmpeg-3c194f390fe7e18a6e2e51eb4f29495eb230585e.tar.gz |
Replace "vector const" by "const vector" otherwise gcc 4.6.0 fails.
Given that this compiles fine with the Apple compiler that is probably
a gcc bug, but "const vector" is nicer anyway.
Diffstat (limited to 'libswscale/ppc')
-rw-r--r-- | libswscale/ppc/yuv2rgb_altivec.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libswscale/ppc/yuv2rgb_altivec.c b/libswscale/ppc/yuv2rgb_altivec.c index 626d55f5f7..8aaa987e62 100644 --- a/libswscale/ppc/yuv2rgb_altivec.c +++ b/libswscale/ppc/yuv2rgb_altivec.c @@ -298,7 +298,7 @@ static int altivec_##name (SwsContext *c, \ vector signed short R1,G1,B1; \ vector unsigned char R,G,B; \ \ - vector const unsigned char *y1ivP, *y2ivP, *uivP, *vivP; \ + const vector unsigned char *y1ivP, *y2ivP, *uivP, *vivP; \ vector unsigned char align_perm; \ \ vector signed short \ @@ -335,10 +335,10 @@ static int altivec_##name (SwsContext *c, \ \ for (j=0;j<w/16;j++) { \ \ - y1ivP = (vector const unsigned char *)y1i; \ - y2ivP = (vector const unsigned char *)y2i; \ - uivP = (vector const unsigned char *)ui; \ - vivP = (vector const unsigned char *)vi; \ + y1ivP = (const vector unsigned char *)y1i; \ + y2ivP = (const vector unsigned char *)y2i; \ + uivP = (const vector unsigned char *)ui; \ + vivP = (const vector unsigned char *)vi; \ \ align_perm = vec_lvsl (0, y1i); \ y0 = (vector unsigned char) \ |