1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-15 19:35:49 +00:00

skip first (green) frame

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22134 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
michael 2007-02-05 00:46:53 +00:00
parent 3f3f9eaae5
commit 339929d765

View File

@ -411,9 +411,13 @@ static int put_image(struct vf_instance_s* vf, mp_image_t *mpi, double pts){
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 @@ static int control(struct vf_instance_s* vf, int request, void* data){
*(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);