[MPlayer-cvslog] r22134 - trunk/libmpcodecs/vf_yadif.c
michael
subversion at mplayerhq.hu
Mon Feb 5 01:46:53 CET 2007
Author: michael
Date: Mon Feb 5 01:46:53 2007
New Revision: 22134
Modified:
trunk/libmpcodecs/vf_yadif.c
Log:
skip first (green) frame
Modified: trunk/libmpcodecs/vf_yadif.c
==============================================================================
--- trunk/libmpcodecs/vf_yadif.c (original)
+++ trunk/libmpcodecs/vf_yadif.c Mon Feb 5 01:46:53 2007
@@ -411,9 +411,13 @@
vf->priv->buffered_i = 0;
vf->priv->buffered_pts = pts;
- return vf->priv->do_deinterlace?
- continue_buffered_image(vf):
- vf_next_put_image(vf, mpi, pts);
+ if(vf->priv->do_deinterlace == 0)
+ return vf_next_put_image(vf, mpi, pts);
+ else if(vf->priv->do_deinterlace == 1){
+ vf->priv->do_deinterlace= 2;
+ return 0;
+ }else
+ continue_buffered_image(vf);
}
static int continue_buffered_image(struct vf_instance_s *vf)
@@ -478,7 +482,7 @@
*(int*)data = vf->priv->do_deinterlace;
return CONTROL_OK;
case VFCTRL_SET_DEINTERLACE:
- vf->priv->do_deinterlace = *(int*)data;
+ vf->priv->do_deinterlace = 2*!!*(int*)data;
return CONTROL_OK;
}
return vf_next_control (vf, request, data);
More information about the MPlayer-cvslog
mailing list