changeset 5614:b2b1942b16d5

export width too
author arpi
date Sun, 14 Apr 2002 02:07:29 +0000
parents 481592004427
children 177707083598
files libmpcodecs/vf_crop.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/vf_crop.c	Sun Apr 14 01:21:13 2002 +0000
+++ b/libmpcodecs/vf_crop.c	Sun Apr 14 02:07:29 2002 +0000
@@ -44,15 +44,15 @@
 	    (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);
 }