[MPlayer-cvslog] CVS: main/libmpcodecs vf_smartblur.c,1.8,1.9

Reimar Döffinger CVS syncmail at mplayerhq.hu
Sun Jul 31 14:13:25 CEST 2005


CVS change done by Reimar Döffinger CVS

Update of /cvsroot/mplayer/main/libmpcodecs
In directory mail:/var2/tmp/cvs-serv27817

Modified Files:
	vf_smartblur.c 
Log Message:
when threshold != 0 the dest image must be readable


Index: vf_smartblur.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/vf_smartblur.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- vf_smartblur.c	20 Jan 2005 13:22:52 -0000	1.8
+++ vf_smartblur.c	31 Jul 2005 12:13:22 -0000	1.9
@@ -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);




More information about the MPlayer-cvslog mailing list