mirror of
https://github.com/mpv-player/mpv
synced 2024-12-15 19:35:49 +00:00
Do not calculate the same value twice
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28911 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
c9872edafe
commit
78383383f7
@ -132,7 +132,7 @@ static int put_image(struct vf_instance_s* vf, mp_image_t *mpi, double pts){
|
||||
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");
|
||||
|
Loading…
Reference in New Issue
Block a user