changeset 16471:9f516ed86916

pp_postprocess reads from target image, so request a readable one. Discussed here: Date: Wed, 27 Jul 2005 18:33:42 +0200 Subject: [MPlayer-dev-eng] [PATCH] mp_image flags in filters
author reimar
date Tue, 13 Sep 2005 10:47:33 +0000
parents fbaf51e1c3b2
children ae74a32ca5d9
files libmpcodecs/vf_pp.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/vf_pp.c	Tue Sep 13 08:47:46 2005 +0000
+++ b/libmpcodecs/vf_pp.c	Tue Sep 13 10:47:33 2005 +0000
@@ -114,7 +114,8 @@
     if(!(mpi->flags&MP_IMGFLAG_DIRECT)){
 	// no DR, so get a new image! hope we'll get DR buffer:
 	vf->dmpi=vf_get_image(vf->next,mpi->imgfmt,
-	    MP_IMGTYPE_TEMP, MP_IMGFLAG_ACCEPT_STRIDE|MP_IMGFLAG_PREFER_ALIGNED_STRIDE,
+	    MP_IMGTYPE_TEMP, MP_IMGFLAG_ACCEPT_STRIDE |
+	    MP_IMGFLAG_PREFER_ALIGNED_STRIDE | MP_IMGFLAG_READABLE,
 //	    MP_IMGTYPE_TEMP, MP_IMGFLAG_ACCEPT_STRIDE,
 //	    mpi->w,mpi->h);
 	    (mpi->width+7)&(~7),(mpi->height+7)&(~7));