From 5460fb3727ee103ad27bac4a77f8afa98abb581d Mon Sep 17 00:00:00 2001 From: arpi Date: Mon, 15 Apr 2002 02:33:05 +0000 Subject: -skiplimit/-noskip options to disable fps correction git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5630 b3059339-0415-0410-9bf9-f77b7e298cf2 --- mencoder.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'mencoder.c') diff --git a/mencoder.c b/mencoder.c index d0e01a0bd4..a291f94309 100644 --- a/mencoder.c +++ b/mencoder.c @@ -132,6 +132,7 @@ static float c_total=0; float force_fps=0; float force_ofps=0; // set to 24 for inverse telecine +static int skip_limit=-1; int force_srate=0; @@ -862,11 +863,13 @@ if(demuxer2){ // 3-pass encoding, read control file (frameno.avi) // check frame duplicate/drop: -if(v_timer_corr>=(float)mux_v->h.dwScale/mux_v->h.dwRate){ +if(v_timer_corr>=(float)mux_v->h.dwScale/mux_v->h.dwRate && + (skip_limit<0 || skip_flagh.dwScale/mux_v->h.dwRate; ++skip_flag; // skip } else -while(v_timer_corr<=-(float)mux_v->h.dwScale/mux_v->h.dwRate){ +while(v_timer_corr<=-(float)mux_v->h.dwScale/mux_v->h.dwRate && + (skip_limit<0 || (-skip_flag)h.dwScale/mux_v->h.dwRate; --skip_flag; // dup } -- cgit v1.2.3