From 02bdc0ebfb2c98d5a242a5b5398f1042db76e7d3 Mon Sep 17 00:00:00 2001 From: arpi Date: Wed, 4 Dec 2002 23:37:17 +0000 Subject: fixed -fps with mencoder and fixed-rate files (avi etc) patch by Ivan Szanto git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8358 b3059339-0415-0410-9bf9-f77b7e298cf2 --- mencoder.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'mencoder.c') diff --git a/mencoder.c b/mencoder.c index f3a5bb1c8c..bc9786f6b4 100644 --- a/mencoder.c +++ b/mencoder.c @@ -500,6 +500,12 @@ sh_video=d_video->sh; sh_video->fps,sh_video->frametime ); + if(force_fps){ + sh_video->fps=force_fps; + sh_video->frametime=1.0f/sh_video->fps; + mp_msg(MSGT_MENCODER,MSGL_INFO,"input fps will be interpreted as %5.2f instead\n", sh_video->fps); + } + if(sh_audio && out_audio_codec<0){ mp_msg(MSGT_MENCODER,MSGL_FATAL,MSGTR_NoAudioEncoderSelected); mencoder_exit(1,NULL); -- cgit v1.2.3