changeset 16154:abe49bc12544

when threshold != 0 the dest image must be readable
author reimar
date Sun, 31 Jul 2005 12:13:22 +0000
parents e21d786d6561
children c0ab9ab83f4c
files libmpcodecs/vf_smartblur.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/vf_smartblur.c	Sun Jul 31 07:14:41 2005 +0000
+++ b/libmpcodecs/vf_smartblur.c	Sun Jul 31 12:13:22 2005 +0000
@@ -187,9 +187,11 @@
 static int put_image(struct vf_instance_s* vf, mp_image_t *mpi){
 	int cw= mpi->w >> mpi->chroma_x_shift;
 	int ch= mpi->h >> mpi->chroma_y_shift;
+	FilterParam *f= &vf->priv;
 
 	mp_image_t *dmpi=vf_get_image(vf->next,mpi->imgfmt,
-		MP_IMGTYPE_TEMP, MP_IMGFLAG_ACCEPT_STRIDE,
+		MP_IMGTYPE_TEMP, MP_IMGFLAG_ACCEPT_STRIDE|
+		(f->threshold) ? MP_IMGFLAG_READABLE : 0,
 		mpi->w,mpi->h);
 
 	assert(mpi->flags&MP_IMGFLAG_PLANAR);