diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-07-31 12:13:22 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-07-31 12:13:22 +0000 |
commit | 91c282cf336c4431916259fad45425104f86a299 (patch) | |
tree | c8bf8e010270c00aab5dc1fb19ebc614b2b3f0e0 | |
parent | 884f6121d1894024a358869f75cc9518c4c93675 (diff) | |
download | mpv-91c282cf336c4431916259fad45425104f86a299.tar.bz2 mpv-91c282cf336c4431916259fad45425104f86a299.tar.xz |
when threshold != 0 the dest image must be readable
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16155 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | libmpcodecs/vf_smartblur.c | 4 |
1 files changed, 3 insertions, 1 deletions
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); |