From 3784f7a494b06dc1c6722e6990f369b429a9af38 Mon Sep 17 00:00:00 2001 From: michael Date: Mon, 11 Jul 2005 18:48:09 +0000 Subject: ensure that dr buffers are readable git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15966 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpcodecs/vf_pp.c | 2 +- libmpcodecs/vf_pp7.c | 2 +- libmpcodecs/vf_spp.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libmpcodecs/vf_pp.c b/libmpcodecs/vf_pp.c index 6131670613..3fb599f408 100644 --- a/libmpcodecs/vf_pp.c +++ b/libmpcodecs/vf_pp.c @@ -97,7 +97,7 @@ static void get_image(struct vf_instance_s* vf, mp_image_t *mpi){ return; // colorspace differ // ok, we can do pp in-place (or pp disabled): vf->dmpi=vf_get_image(vf->next,mpi->imgfmt, - mpi->type, mpi->flags, mpi->w, mpi->h); + mpi->type, mpi->flags | MP_IMGFLAG_READABLE, mpi->w, mpi->h); mpi->planes[0]=vf->dmpi->planes[0]; mpi->stride[0]=vf->dmpi->stride[0]; mpi->width=vf->dmpi->width; diff --git a/libmpcodecs/vf_pp7.c b/libmpcodecs/vf_pp7.c index ac644344bb..d9fcd80bba 100644 --- a/libmpcodecs/vf_pp7.c +++ b/libmpcodecs/vf_pp7.c @@ -356,7 +356,7 @@ static void get_image(struct vf_instance_s* vf, mp_image_t *mpi){ if(mpi->flags&MP_IMGFLAG_PRESERVE) return; // don't change // ok, we can do pp in-place (or pp disabled): vf->dmpi=vf_get_image(vf->next,mpi->imgfmt, - mpi->type, mpi->flags, mpi->w, mpi->h); + mpi->type, mpi->flags | MP_IMGFLAG_READABLE, mpi->w, mpi->h); mpi->planes[0]=vf->dmpi->planes[0]; mpi->stride[0]=vf->dmpi->stride[0]; mpi->width=vf->dmpi->width; diff --git a/libmpcodecs/vf_spp.c b/libmpcodecs/vf_spp.c index dce9e4f649..be89594d25 100644 --- a/libmpcodecs/vf_spp.c +++ b/libmpcodecs/vf_spp.c @@ -453,7 +453,7 @@ static void get_image(struct vf_instance_s* vf, mp_image_t *mpi){ if(mpi->flags&MP_IMGFLAG_PRESERVE) return; // don't change // ok, we can do pp in-place (or pp disabled): vf->dmpi=vf_get_image(vf->next,mpi->imgfmt, - mpi->type, mpi->flags, mpi->w, mpi->h); + mpi->type, mpi->flags | MP_IMGFLAG_READABLE, mpi->w, mpi->h); mpi->planes[0]=vf->dmpi->planes[0]; mpi->stride[0]=vf->dmpi->stride[0]; mpi->width=vf->dmpi->width; -- cgit v1.2.3