Mercurial > mplayer.hg
changeset 15965:6ca3e46894b6
ensure that dr buffers are readable
author | michael |
---|---|
date | Mon, 11 Jul 2005 18:48:09 +0000 |
parents | d244178a3105 |
children | 2170729da726 |
files | libmpcodecs/vf_pp.c libmpcodecs/vf_pp7.c libmpcodecs/vf_spp.c |
diffstat | 3 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpcodecs/vf_pp.c Mon Jul 11 17:52:03 2005 +0000 +++ b/libmpcodecs/vf_pp.c Mon Jul 11 18:48:09 2005 +0000 @@ -97,7 +97,7 @@ 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;
--- a/libmpcodecs/vf_pp7.c Mon Jul 11 17:52:03 2005 +0000 +++ b/libmpcodecs/vf_pp7.c Mon Jul 11 18:48:09 2005 +0000 @@ -356,7 +356,7 @@ 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;
--- a/libmpcodecs/vf_spp.c Mon Jul 11 17:52:03 2005 +0000 +++ b/libmpcodecs/vf_spp.c Mon Jul 11 18:48:09 2005 +0000 @@ -453,7 +453,7 @@ 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;