[MPlayer-cvslog] r32857 - trunk/mplayer.c

Reimar Döffinger Reimar.Doeffinger at gmx.de
Sat Feb 5 20:57:58 CET 2011


On Sat, Feb 05, 2011 at 08:05:02PM +0100, cboesch wrote:
> Author: cboesch
> Date: Sat Feb  5 20:05:02 2011
> New Revision: 32857
> 
> Log:
> FPS are in float in sh_video, not double.
> 
> Original patch by rodries/wiimc.org. This is necessary for the next fix to come.

No it is completely irrelevant.

> Modified:
>    trunk/mplayer.c
> 
> Modified: trunk/mplayer.c
> ==============================================================================
> --- trunk/mplayer.c	Sat Feb  5 15:04:07 2011	(r32856)
> +++ trunk/mplayer.c	Sat Feb  5 20:05:02 2011	(r32857)
> @@ -3499,7 +3499,7 @@ if(1 || mpctx->sh_video) {
>  // after reading video params we should load subtitles because
>  // we know fps so now we can adjust subtitle time to ~6 seconds AST
>  // check .sub
> -  double fps = mpctx->sh_video ? mpctx->sh_video->fps : 25;
> +  float fps = mpctx->sh_video ? mpctx->sh_video->fps : 25;

Please revert this, fps should be double everywhere, just
because some places are incorrectly float is not a reason
to undo the work already made!
float is not acceptable because it cannot represent
e.g. 30000/1001 accurately enough for some purposes.


More information about the MPlayer-cvslog mailing list