changeset 5513:73696051e3ce

mpeg+pp0 fixed
author arpi
date Sun, 07 Apr 2002 03:25:25 +0000
parents 4ccfa77d8e86
children 127f2a84e933
files libmpcodecs/vf_pp.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/vf_pp.c	Sun Apr 07 03:20:41 2002 +0000
+++ b/libmpcodecs/vf_pp.c	Sun Apr 07 03:25:25 2002 +0000
@@ -19,7 +19,8 @@
 
 static void get_image(struct vf_instance_s* vf, mp_image_t *mpi){
     if(vf->priv->pp&0xFFFF) return; // non-local filters enabled
-    if(vf->priv->pp && mpi->flags&MP_IMGFLAG_PRESERVE) return; // don't change
+    if((mpi->type==MP_IMGTYPE_IPB || vf->priv->pp) && 
+	mpi->flags&MP_IMGFLAG_PRESERVE) return; // don't change
     // ok, we can do pp in-place (or pp disabled):
     vf->priv->dmpi=vf_get_image(vf->next,mpi->imgfmt,
         mpi->type, mpi->flags, mpi->w, mpi->h);