From dcd2435e795eefe687c23b5b74da430525ad8c00 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 10 Nov 2012 21:28:47 +0100 Subject: vf_softpulldown: fix possible regression The lines added with this commit were accidentally removed in commit a0d759, which was a pure cleanup commit merged from mplayer-svn. The difference between mplayer-svn and the mplayer2 base is that this filter has been made PTS aware in mplayer2. Also remove the redundant initialization of vf->priv->state. --- video/filter/vf_softpulldown.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'video/filter') diff --git a/video/filter/vf_softpulldown.c b/video/filter/vf_softpulldown.c index 80f353e548..a679ef9b44 100644 --- a/video/filter/vf_softpulldown.c +++ b/video/filter/vf_softpulldown.c @@ -168,7 +168,8 @@ static int vf_open(vf_instance_t *vf, char *args) vf->uninit = uninit; vf->default_reqs = VFCAP_ACCEPT_STRIDE; vf->priv = calloc(1, sizeof(struct vf_priv_s)); - vf->priv->state = 0; + vf->priv->last_frame_duration = 2; + vf_detc_init_pts_buf(&vf->priv->ptsbuf); return 1; } -- cgit v1.2.3