# HG changeset patch # User reimar # Date 1236609139 0 # Node ID e08f479da23329934259c991a2be7942140ed0a1 # Parent 8cfb1d6272fe2205ec37311c254cef515ac4f4be Do not calculate the same value twice diff -r 8cfb1d6272fe -r e08f479da233 libmpcodecs/ve_nuv.c --- 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");