changeset 22060:72cda37eb94c

Fix vd_lzo, broken since r18069, i.e. April 2006!
author reimar
date Tue, 30 Jan 2007 18:51:23 +0000
parents de1f96b96144
children 6b82ba8d011b
files libmpcodecs/vd_lzo.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/vd_lzo.c	Tue Jan 30 18:29:02 2007 +0000
+++ b/libmpcodecs/vd_lzo.c	Tue Jan 30 18:51:23 2007 +0000
@@ -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 */