changeset 5530:e974e82be748

copy width too
author arpi
date Mon, 08 Apr 2002 01:36:21 +0000
parents 1b301c326c3b
children 63992a9d49f0
files libmpcodecs/vf_expand.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/vf_expand.c	Mon Apr 08 01:33:29 2002 +0000
+++ b/libmpcodecs/vf_expand.c	Mon Apr 08 01:36:21 2002 +0000
@@ -54,15 +54,15 @@
 		(vf->priv->exp_y>>1)*vf->priv->dmpi->stride[1]+(vf->priv->exp_x>>1);
 	    mpi->planes[2]=vf->priv->dmpi->planes[2]+
 		(vf->priv->exp_y>>1)*vf->priv->dmpi->stride[2]+(vf->priv->exp_x>>1);
-	    mpi->stride[0]=vf->priv->dmpi->stride[0];
 	    mpi->stride[1]=vf->priv->dmpi->stride[1];
 	    mpi->stride[2]=vf->priv->dmpi->stride[2];
 	} else {
 	    mpi->planes[0]=vf->priv->dmpi->planes[0]+
 		vf->priv->exp_y*vf->priv->dmpi->stride[0]+
 		vf->priv->exp_x*(vf->priv->dmpi->bpp/8);
-	    mpi->stride[0]=vf->priv->dmpi->stride[0];
 	}
+	mpi->stride[0]=vf->priv->dmpi->stride[0];
+	mpi->width=vf->priv->dmpi->width;
 	mpi->flags|=MP_IMGFLAG_DIRECT;
     }
 }