diff options
author | michael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-07-11 18:48:09 +0000 |
---|---|---|
committer | michael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-07-11 18:48:09 +0000 |
commit | 3784f7a494b06dc1c6722e6990f369b429a9af38 (patch) | |
tree | b51926ca6c5a77442f8f4b7b7c053d895a519c85 | |
parent | c60555edbf80b05838156a103f180cdb5d405654 (diff) |
ensure that dr buffers are readable
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15966 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | libmpcodecs/vf_pp.c | 2 | ||||
-rw-r--r-- | libmpcodecs/vf_pp7.c | 2 | ||||
-rw-r--r-- | 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; |