diff libmpcodecs/vf_denoise3d.c @ 16156:64606c87ead9

Needs the previous mpi (pmpi), so request a readable one and request the following filters not to modify it.
author reimar
date Sun, 31 Jul 2005 20:58:52 +0000
parents e9a2af584986
children 33e93b55fbee
line wrap: on
line diff
--- a/libmpcodecs/vf_denoise3d.c	Sun Jul 31 20:56:41 2005 +0000
+++ b/libmpcodecs/vf_denoise3d.c	Sun Jul 31 20:58:52 2005 +0000
@@ -120,7 +120,8 @@
         int W = mpi->w, H = mpi->h;
 
 	mp_image_t *dmpi=vf_get_image(vf->next,mpi->imgfmt,
-		MP_IMGTYPE_IP, MP_IMGFLAG_ACCEPT_STRIDE,
+		MP_IMGTYPE_IP, MP_IMGFLAG_ACCEPT_STRIDE |
+		MP_IMGFLAG_PRESERVE | MP_IMGFLAG_READABLE,
                 mpi->w,mpi->h);
 
 	if(!dmpi) return 0;