# HG changeset patch # User arpi # Date 1013218151 0 # Node ID badb76094897fe493ef35cda599fffea30e7970d # Parent 4ba62f7d04c6faf3a2f14e7ef194695d669a38ce setting vo_fps, required for vo_yuv4mpeg diff -r 4ba62f7d04c6 -r badb76094897 mplayer.c --- a/mplayer.c Sat Feb 09 01:25:21 2002 +0000 +++ b/mplayer.c Sat Feb 09 01:29:11 2002 +0000 @@ -1065,6 +1065,14 @@ 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(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); }