[MPlayer-dev-eng] [PATCH] round delay properly

Arpi arpi at thot.banki.hu
Thu Dec 26 00:55:35 CET 2002


Hi,

> This patch makes subtitle and A-V delays display correctly rounded
> ("3800 ms" instead of "3799 ms" etc).
> 
> (I submitted this some time ago, but it was not applied. This
> new patch doesn't define _BSD_SOURCE or _ISOC99_SOURCE, only

do we really need all this mess for this so-easy function lround()?
why don't we do the rounding manually, like (x<0)?(x-1):x or so.

just remember the case of lrint() in ffmpeg, it made lots of portability
issues for a month...

> _GNU_SOURCE. It shouldn't matter though, since only GNU systems
> care.)

is solaris or windows a gnu system?


A'rpi / Astral & ESP-team

--
Developer of MPlayer, the Movie Player for Linux - http://www.MPlayerHQ.hu



More information about the MPlayer-dev-eng mailing list