# HG changeset patch # User arpi # Date 1018229781 0 # Node ID e974e82be748d41e8031c0c7eb8419be70396f9a # Parent 1b301c326c3bb0881ca72bbeb1ed7ba83f4da01b copy width too diff -r 1b301c326c3b -r e974e82be748 libmpcodecs/vf_expand.c --- 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; } }