changeset 20656:839c48c35ce8

ass renderer absolutely needs readable target mpi.
author reimar
date Sat, 04 Nov 2006 20:48:15 +0000
parents ee9982a6ef5c
children 5fe83dd75490
files libmpcodecs/vf_ass.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/vf_ass.c	Sat Nov 04 19:19:03 2006 +0000
+++ b/libmpcodecs/vf_ass.c	Sat Nov 04 20:48:15 2006 +0000
@@ -107,7 +107,7 @@
 	    
 	// width never changes, always try full DR
 	mpi->priv = vf->dmpi = vf_get_image(vf->next, mpi->imgfmt,
-			mpi->type, mpi->flags, 
+			mpi->type, mpi->flags | MP_IMGFLAG_READABLE, 
 			vf->priv->outw,
 			vf->priv->outh);
 
@@ -176,7 +176,7 @@
 
 	// hope we'll get DR buffer:
 	vf->dmpi = vf_get_image(vf->next, vf->priv->outfmt,
-			MP_IMGTYPE_TEMP, MP_IMGFLAG_ACCEPT_STRIDE,
+			MP_IMGTYPE_TEMP, MP_IMGFLAG_ACCEPT_STRIDE | MP_IMGFLAG_READABLE,
 			vf->priv->outw, vf->priv->outh);
 
 	// copy mpi->dmpi...