[MPlayer-cvslog] r28912 - trunk/libmpcodecs/ve_nuv.c

reimar subversion at mplayerhq.hu
Mon Mar 9 15:40:55 CET 2009


Author: reimar
Date: Mon Mar  9 15:40:55 2009
New Revision: 28912

Log:
Fix type of zlen, fixes crashes on 64 bit systems.

Modified:
   trunk/libmpcodecs/ve_nuv.c

Modified: trunk/libmpcodecs/ve_nuv.c
==============================================================================
--- trunk/libmpcodecs/ve_nuv.c	Mon Mar  9 15:32:19 2009	(r28911)
+++ trunk/libmpcodecs/ve_nuv.c	Mon Mar  9 15:40:55 2009	(r28912)
@@ -105,7 +105,8 @@ static int put_image(struct vf_instance_
   struct rtframeheader* ench = (struct rtframeheader*)vf->priv->buffer;
   uint8_t* data = vf->priv->buffer + FRAMEHEADERSIZE;
   uint8_t* zdata = vf->priv->zbuffer + FRAMEHEADERSIZE;
-  int len = 0, zlen = 0,r;
+  int len = 0, r;
+  size_t zlen = 0;
 
   memset(vf->priv->buffer,0,FRAMEHEADERSIZE); // Reset the header
   if(vf->priv->lzo)



More information about the MPlayer-cvslog mailing list