diff libmpcodecs/vf_pp7.c @ 15965:6ca3e46894b6

ensure that dr buffers are readable
author michael
date Mon, 11 Jul 2005 18:48:09 +0000
parents 08338441314b
children bdf1b4ecb906
line wrap: on
line diff
--- 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;