From 920ee4dc5303b4a3ff42d94ec9e27c513bf1c6b0 Mon Sep 17 00:00:00 2001 From: diego Date: Fri, 13 Aug 2010 11:08:30 +0000 Subject: spudec.c: mark a parameter const Mark constant sws_spu_image() parameter as const, fixes the warning: spudec.c:874: warning: passing argument 2 of 'sws_scale' from incompatible pointer type git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31959 b3059339-0415-0410-9bf9-f77b7e298cf2 --- spudec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spudec.c b/spudec.c index 28046444af..5e39846fe6 100644 --- a/spudec.c +++ b/spudec.c @@ -852,8 +852,8 @@ static void scale_image(int x, int y, scale_pixel* table_x, scale_pixel* table_y } static void sws_spu_image(unsigned char *d1, unsigned char *d2, int dw, int dh, - int ds, unsigned char *s1, unsigned char *s2, int sw, - int sh, int ss) + int ds, const unsigned char* s1, unsigned char* s2, + int sw, int sh, int ss) { struct SwsContext *ctx; static SwsFilter filter; -- cgit v1.2.3