changeset 8126:62d00d1c624e

Fix IPB DR
author albeu
date Thu, 07 Nov 2002 10:21:18 +0000
parents cd5a4de959b8
children e7153e62a7f4
files libmpcodecs/vf_flip.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/vf_flip.c	Thu Nov 07 05:28:55 2002 +0000
+++ b/libmpcodecs/vf_flip.c	Thu Nov 07 10:21:18 2002 +0000
@@ -41,13 +41,14 @@
 	    mpi->stride[2]=-vf->priv->dmpi->stride[2];
 	}
 	mpi->flags|=MP_IMGFLAG_DIRECT;
+	mpi->priv=(void*)vf->priv->dmpi;
     }
 }
 
 static int put_image(struct vf_instance_s* vf, mp_image_t *mpi){
     if(mpi->flags&MP_IMGFLAG_DIRECT){
 	// we've used DR, so we're ready...
-	return vf_next_put_image(vf,vf->priv->dmpi);
+	return vf_next_put_image(vf,(mp_image_t*)mpi->priv);
     }
 
     vf->priv->dmpi=vf_get_image(vf->next,mpi->imgfmt,