# HG changeset patch # User arpi # Date 1039045037 0 # Node ID ea3c66c6665f0be58157cbe5c758ea462d931f56 # Parent 02e30a70053fd98954db3267fa5cba634b3164f8 fixed -fps with mencoder and fixed-rate files (avi etc) patch by Ivan Szanto diff -r 02e30a70053f -r ea3c66c6665f mencoder.c --- a/mencoder.c Wed Dec 04 23:35:34 2002 +0000 +++ b/mencoder.c Wed Dec 04 23:37:17 2002 +0000 @@ -500,6 +500,12 @@ 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);