changeset 33333:b87fb1c5c4e9

Fix "warning: pointer of type 'void *' used in arithmetic".
author reimar
date Sat, 07 May 2011 20:12:40 +0000
parents 8b0d95785db2
children 15f527594411
files libmpcodecs/vf_yadif.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/vf_yadif.c	Sat May 07 20:10:01 2011 +0000
+++ b/libmpcodecs/vf_yadif.c	Sat May 07 20:12:40 2011 +0000
@@ -376,7 +376,7 @@
 
             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);