From 91c282cf336c4431916259fad45425104f86a299 Mon Sep 17 00:00:00 2001 From: reimar Date: Sun, 31 Jul 2005 12:13:22 +0000 Subject: when threshold != 0 the dest image must be readable git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16155 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpcodecs/vf_smartblur.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libmpcodecs/vf_smartblur.c b/libmpcodecs/vf_smartblur.c index a83a11e46b..b445e58018 100644 --- a/libmpcodecs/vf_smartblur.c +++ b/libmpcodecs/vf_smartblur.c @@ -187,9 +187,11 @@ static inline void blur(uint8_t *dst, uint8_t *src, int w, int h, int dstStride, 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); -- cgit v1.2.3