summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mencoder.c6
1 files changed, 6 insertions, 0 deletions
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);