[MPlayer-cvslog] r33420 - trunk/libmpcodecs/vf_yadif.c

reimar subversion at mplayerhq.hu
Sat May 7 22:12:40 CEST 2011


Author: reimar
Date: Sat May  7 22:12:40 2011
New Revision: 33420

Log:
Fix "warning: pointer of type 'void *' used in arithmetic".

Modified:
   trunk/libmpcodecs/vf_yadif.c

Modified: trunk/libmpcodecs/vf_yadif.c
==============================================================================
--- trunk/libmpcodecs/vf_yadif.c	Sat May  7 22:10:01 2011	(r33419)
+++ trunk/libmpcodecs/vf_yadif.c	Sat May  7 22:12:40 2011	(r33420)
@@ -376,7 +376,7 @@ static int config(struct vf_instance *vf
 
             vf->priv->stride[i]= w;
             for(j=0; j<3; j++)
-                vf->priv->ref[j][i]= malloc(w*h*sizeof(uint8_t))+3*w;
+                vf->priv->ref[j][i]= (uint8_t *)malloc(w*h*sizeof(uint8_t))+3*w;
         }
 
 	return vf_next_config(vf,width,height,d_width,d_height,flags,outfmt);


More information about the MPlayer-cvslog mailing list