# HG changeset patch # User reimar # Date 1122812002 0 # Node ID abe49bc125441f267652d1b34aace2d985c24e92 # Parent e21d786d6561320d9611af1e3d7ffabc8da137b0 when threshold != 0 the dest image must be readable diff -r e21d786d6561 -r abe49bc12544 libmpcodecs/vf_smartblur.c --- 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);