[MPlayer-cvslog] r22078 - trunk/libmpcodecs/vd_lzo.c

reimar subversion at mplayerhq.hu
Tue Jan 30 19:51:24 CET 2007


Author: reimar
Date: Tue Jan 30 19:51:23 2007
New Revision: 22078

Modified:
   trunk/libmpcodecs/vd_lzo.c

Log:
Fix vd_lzo, broken since r18069, i.e. April 2006!


Modified: trunk/libmpcodecs/vd_lzo.c
==============================================================================
--- trunk/libmpcodecs/vd_lzo.c	(original)
+++ trunk/libmpcodecs/vd_lzo.c	Tue Jan 30 19:51:23 2007
@@ -155,7 +155,7 @@
 	    return NULL;
     }
 
-    w = mpi->w * mpi->h;
+    w = (mpi->w * mpi->h * mpi->bpp) / 8;
     r = lzo1x_decompress_safe (data, len, mpi->planes[0], &w, priv->wrkmem);
     if (r != LZO_E_OK) {
 	/* this should NEVER happen */



More information about the MPlayer-cvslog mailing list