changeset 31878:e9458f705c3f

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
author diego
date Fri, 13 Aug 2010 11:08:30 +0000
parents e30fe0cb79cd
children 253f7779fe98
files spudec.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/spudec.c	Wed Aug 11 20:59:03 2010 +0000
+++ b/spudec.c	Fri Aug 13 11:08:30 2010 +0000
@@ -852,8 +852,8 @@
 }
 
 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;