From 02c39f056a77427850f43aaa19b8856534a1693a Mon Sep 17 00:00:00 2001 From: Diego Biurrun Date: Mon, 2 Apr 2012 19:03:30 +0200 Subject: ppc: Add/remove a number of const qualifiers to fix related warnings. --- libswscale/ppc/yuv2rgb_altivec.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'libswscale/ppc/yuv2rgb_altivec.c') diff --git a/libswscale/ppc/yuv2rgb_altivec.c b/libswscale/ppc/yuv2rgb_altivec.c index 523d9966c6..3a140cb1f8 100644 --- a/libswscale/ppc/yuv2rgb_altivec.c +++ b/libswscale/ppc/yuv2rgb_altivec.c @@ -300,7 +300,7 @@ static int altivec_ ## name(SwsContext *c, const unsigned char **in, \ vector signed short R1, G1, B1; \ vector unsigned char R, G, B; \ \ - vector unsigned char *y1ivP, *y2ivP, *uivP, *vivP; \ + const vector unsigned char *y1ivP, *y2ivP, *uivP, *vivP; \ vector unsigned char align_perm; \ \ vector signed short lCY = c->CY; \ @@ -335,10 +335,10 @@ static int altivec_ ## name(SwsContext *c, const unsigned char **in, \ vec_dstst(oute, (0x02000002 | (((w * 3 + 32) / 32) << 16)), 1); \ \ 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 = (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) \ -- cgit v1.2.3