[MPlayer-dev-eng] Rounding error in libmpdemux/video.c

Andreas Gustafsson olangu at hotmail.com
Sat Feb 7 15:29:24 CET 2009


Row 579:
              mp_msg(MSGT_CPLAYER,MSGL_V,"\navg. framerate: %d fps             \n",(int)(1.0f/d));

Incorrectly cuts the decimals (25fps movies 24.999... gives 24fps)
This will fix the problem:

              mp_msg(MSGT_CPLAYER,MSGL_V,"\navg. framerate: %.0f fps             \n",(1.0f/d));


Hope this will help.

BR,
Andreas Gustafsson

_________________________________________________________________
More than messages–check out the rest of the Windows Live™.
http://www.microsoft.com/windows/windowslive/


More information about the MPlayer-dev-eng mailing list