[MPlayer-cvslog] r32220 - in trunk/libmpcodecs: vf_sab.c vf_smartblur.c

diego subversion at mplayerhq.hu
Mon Sep 13 14:14:44 CEST 2010


Author: diego
Date: Mon Sep 13 14:14:43 2010
New Revision: 32220

Log:
Mark srcArray as const pointer to const data, fixes the warnings:
libmpcodecs/vf_sab.c:183: warning: passing argument 2 of 'sws_scale' from incompatible pointer type
libmpcodecs/vf_smartblur.c:134: warning: passing argument 2 of 'sws_scale' from incompatible pointer type

Modified:
   trunk/libmpcodecs/vf_sab.c
   trunk/libmpcodecs/vf_smartblur.c

Modified: trunk/libmpcodecs/vf_sab.c
==============================================================================
--- trunk/libmpcodecs/vf_sab.c	Mon Sep 13 05:56:24 2010	(r32219)
+++ trunk/libmpcodecs/vf_sab.c	Mon Sep 13 14:14:43 2010	(r32220)
@@ -174,7 +174,7 @@ static inline void blur(uint8_t *dst, ui
 	int x, y;
 	FilterParam f= *fp;
 	const int radius= f.distWidth/2;
-	uint8_t *srcArray[MP_MAX_PLANES]= {src};
+	const uint8_t* const srcArray[MP_MAX_PLANES] = {src};
 	uint8_t *dstArray[MP_MAX_PLANES]= {f.preFilterBuf};
 	int srcStrideArray[MP_MAX_PLANES]= {srcStride};
 	int dstStrideArray[MP_MAX_PLANES]= {f.preFilterStride};

Modified: trunk/libmpcodecs/vf_smartblur.c
==============================================================================
--- trunk/libmpcodecs/vf_smartblur.c	Mon Sep 13 05:56:24 2010	(r32219)
+++ trunk/libmpcodecs/vf_smartblur.c	Mon Sep 13 14:14:43 2010	(r32220)
@@ -126,7 +126,7 @@ static void uninit(struct vf_instance *v
 static inline void blur(uint8_t *dst, uint8_t *src, int w, int h, int dstStride, int srcStride, FilterParam *fp){
 	int x, y;
 	FilterParam f= *fp;
-	uint8_t *srcArray[MP_MAX_PLANES]= {src};
+	const uint8_t* const srcArray[MP_MAX_PLANES] = {src};
 	uint8_t *dstArray[MP_MAX_PLANES]= {dst};
 	int srcStrideArray[MP_MAX_PLANES]= {srcStride};
 	int dstStrideArray[MP_MAX_PLANES]= {dstStride};


More information about the MPlayer-cvslog mailing list