changeset 28876:e08f479da233

Do not calculate the same value twice
author reimar
date Mon, 09 Mar 2009 14:32:19 +0000
parents 8cfb1d6272fe
children aed9da3c6d0f
files libmpcodecs/ve_nuv.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/ve_nuv.c	Mon Mar 09 14:30:41 2009 +0000
+++ b/libmpcodecs/ve_nuv.c	Mon Mar 09 14:32:19 2009 +0000
@@ -132,7 +132,7 @@
     len = mpi->width*mpi->height*3/2;
     // Try lzo ???
     if(vf->priv->lzo) {
-      r = lzo1x_1_compress(mpi->planes[0],mpi->width*mpi->height*3/2,
+      r = lzo1x_1_compress(mpi->planes[0],len,
 			   zdata,&zlen,vf->priv->zmem);
       if(r != LZO_E_OK) {
 	mp_msg(MSGT_VFILTER,MSGL_ERR,"LZO compress error\n");