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

Andreas Gustafsson olangu at hotmail.com
Mon May 11 16:43:42 CEST 2009


Still not fixed upstream.

Attaching diff.

BR
Andreas

From: olangu at hotmail.com
To: mplayer-dev-eng at mplayerhq.hu
Subject: Rounding error in libmpdemux/video.c
Date: Sat, 7 Feb 2009 15:29:24 +0100








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

check out the rest of the Windows Live™.
More than mail–Windows Live™ goes way beyond your inbox.
 More than messages
_________________________________________________________________
Windows Live™: Keep your life in sync. Check it out!
http://windowslive.com/explore?ocid=TXT_TAGLM_WL_t1_allup_explore_012009
-------------- next part --------------
A non-text attachment was scrubbed...
Name: videoc_rounding.diff
Type: text/x-patch
Size: 522 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20090511/f636281d/attachment.bin>


More information about the MPlayer-dev-eng mailing list