1
mirror of https://github.com/mpv-player/mpv synced 2025-01-16 22:37:28 +01:00

export width too

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5615 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
arpi 2002-04-14 02:07:29 +00:00
parent 4efbbf02fa
commit a1a3cd6af2

View File

@ -44,15 +44,15 @@ static void put_image(struct vf_instance_s* vf, mp_image_t *mpi){
(vf->priv->crop_y>>1)*mpi->stride[1]+(vf->priv->crop_x>>1);
dmpi->planes[2]=mpi->planes[2]+
(vf->priv->crop_y>>1)*mpi->stride[2]+(vf->priv->crop_x>>1);
dmpi->stride[0]=mpi->stride[0];
dmpi->stride[1]=mpi->stride[1];
dmpi->stride[2]=mpi->stride[2];
} else {
dmpi->planes[0]=mpi->planes[0]+
vf->priv->crop_y*mpi->stride[0]+
vf->priv->crop_x*(mpi->bpp/8);
dmpi->stride[0]=mpi->stride[0];
}
dmpi->stride[0]=mpi->stride[0];
dmpi->width=mpi->width;
vf_next_put_image(vf,dmpi);
}