From 89c687e97e6544414e11808d99d7a56729b79ef8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Reimar=20D=C3=B6ffinger?= Date: Sun, 29 May 2011 15:25:17 +0200 Subject: [PATCH] Add const to vector types for input in altivec code. Avoids a large amount of warnings about cast discarding qualifiers. --- libswscale/ppc/yuv2rgb_altivec.c | 10 +++++----- 1 file 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