aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2011-05-29 15:25:17 +0200
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>2011-05-29 15:25:17 +0200
commit89c687e97e6544414e11808d99d7a56729b79ef8 (patch)
treeb6c15b8f8a57cc96f53180e658e07dee2be05baa
parent4596d0f4c448e7cec37818cd3ee3583346083f28 (diff)
downloadffmpeg-89c687e97e6544414e11808d99d7a56729b79ef8.tar.gz
Add const to vector types for input in altivec code.
Avoids a large amount of warnings about cast discarding qualifiers.
-rw-r--r--libswscale/ppc/yuv2rgb_altivec.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/libswscale/ppc/yuv2rgb_altivec.c b/libswscale/ppc/yuv2rgb_altivec.c
index 06f8df8239..c1115e6abb 100644
--- a/libswscale/ppc/yuv2rgb_altivec.c
+++ b/libswscale/ppc/yuv2rgb_altivec.c
@@ -297,7 +297,7 @@ static int altivec_##name (SwsContext *c, \
vector signed short R1,G1,B1; \
vector unsigned char R,G,B; \
\
- vector unsigned char *y1ivP, *y2ivP, *uivP, *vivP; \
+ vector const unsigned char *y1ivP, *y2ivP, *uivP, *vivP; \
vector unsigned char align_perm; \
\
vector signed short \
@@ -334,10 +334,10 @@ static int altivec_##name (SwsContext *c, \
\
for (j=0;j<w/16;j++) { \
\
- y1ivP = (vector unsigned char *)y1i; \
- y2ivP = (vector unsigned char *)y2i; \
- uivP = (vector unsigned char *)ui; \
- vivP = (vector unsigned char *)vi; \
+ y1ivP = (vector const unsigned char *)y1i; \
+ y2ivP = (vector const unsigned char *)y2i; \
+ uivP = (vector const unsigned char *)ui; \
+ vivP = (vector const unsigned char *)vi; \
\
align_perm = vec_lvsl (0, y1i); \
y0 = (vector unsigned char) \