changeset 8357:ea3c66c6665f

fixed -fps with mencoder and fixed-rate files (avi etc) patch by Ivan Szanto <szivan@duticai.TWI.TUDelft.NL>
author arpi
date Wed, 04 Dec 2002 23:37:17 +0000
parents 02e30a70053f
children ecf6a4cf3272
files mencoder.c
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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);