fixed -fps with mencoder and fixed-rate files (avi etc)

patch by Ivan Szanto <szivan@duticai.TWI.TUDelft.NL>


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8358 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
arpi 2002-12-04 23:37:17 +00:00
parent 8f49d90eeb
commit 02bdc0ebfb
1 changed files with 6 additions and 0 deletions

View File

@ -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);