summaryrefslogtreecommitdiffstats
path: root/libmpcodecs/vf_flip.c
diff options
context:
space:
mode:
Diffstat (limited to 'libmpcodecs/vf_flip.c')
-rw-r--r--libmpcodecs/vf_flip.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libmpcodecs/vf_flip.c b/libmpcodecs/vf_flip.c
index dfefd1e4d3..b63472a1b2 100644
--- a/libmpcodecs/vf_flip.c
+++ b/libmpcodecs/vf_flip.c
@@ -41,13 +41,14 @@ static void get_image(struct vf_instance_s* vf, mp_image_t *mpi){
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,