[MPlayer-dev-eng] GetTimer is 32 bit
Uoti Urpala
uoti.urpala at pp1.inet.fi
Thu Mar 26 18:40:30 CET 2009
On Thu, 2009-03-26 at 18:32 +0100, Dan Oscarsson wrote:
> Hi
>
> I see that GetTimer returns an unsigned int. That is a 32-bit quantity
> on most systems. Will it not wrap around about every 4294 seconds?
> Can not that disrupt functions in mplayer?
>
> Would it not be better to use a 64-bit value?
IIRC it's only used for short-term relative timing, and most code using
it should be unaffected by wraparound. A quick grep shows an use which
is affected in ao_jack.c, but even that looks like it should probably
not cause severe errors.
More information about the MPlayer-dev-eng
mailing list