[MPlayer-dev-eng] Change pts values to use doubles instead of floats

Uoti Urpala uoti.urpala at pp1.inet.fi
Mon Apr 24 22:44:21 CEST 2006


Floats do not have sufficient precision to hold pts values in long
streams/files. After 8192 seconds the distance between two consecutive
floats is about 1 ms, and the error grows proportional to file length,
so after 65536 seconds (less than a day) it's 8 ms.

The attached patch changes the common data structures to doubles. It
does not yet change any demuxers to produce pts values with higher
precision, many of them use floats internally.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pts_double_common.diff
Type: text/x-patch
Size: 5188 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20060424/de329be2/attachment.bin>


More information about the MPlayer-dev-eng mailing list