From 24739724b8e29300089c3b3e5a493c4dd78eafeb Mon Sep 17 00:00:00 2001 From: arpi Date: Sat, 9 Feb 2002 01:29:11 +0000 Subject: setting vo_fps, required for vo_yuv4mpeg git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4599 b3059339-0415-0410-9bf9-f77b7e298cf2 --- mplayer.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/mplayer.c b/mplayer.c index a59abd3d02..9de3eed45e 100644 --- a/mplayer.c +++ b/mplayer.c @@ -1065,6 +1065,14 @@ if(sh_video){ sh_video->fps,sh_video->frametime ); + vo_fps = sh_video->fps; + /* need to set fps here for output encoders to pick it up in their init */ + if(force_fps){ + sh_video->fps=force_fps; + sh_video->frametime=1.0f/sh_video->fps; + vo_fps = force_fps; + } + if(!sh_video->fps && !force_fps){ mp_msg(MSGT_CPLAYER,MSGL_ERR,MSGTR_FPSnotspecified); sh_video=d_video->sh=NULL; @@ -1476,7 +1484,7 @@ if(!sh_audio){ if(demuxer->file_format!=DEMUXER_TYPE_AVI) pts_from_bps=0; // it must be 0 for mpeg/asf! if(force_fps){ - sh_video->fps=force_fps; + vo_fps = sh_video->fps=force_fps; sh_video->frametime=1.0f/sh_video->fps; mp_msg(MSGT_CPLAYER,MSGL_INFO,MSGTR_FPSforced,sh_video->fps,sh_video->frametime); } -- cgit v1.2.3