mirror of
https://github.com/mpv-player/mpv
synced 2025-01-05 03:06:28 +01:00
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:
parent
8f49d90eeb
commit
02bdc0ebfb
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user