[vlc-devel] [PATCH 01/18] clock: Avg: use double

Denis Charmet typx at videolan.org
Thu Mar 7 16:09:16 CET 2019


On 2019-03-07 15:31, Francois Cartegnie wrote:
> non exact and slower than integer/remain * timescale
> What's the need ?

A long term average is not exact by nature, the precision is good 
enough for our need, and the speed of this is kinda irrelevant 
considering the frequency. The previous code had implementation bugs.

There is no need it's just easier to read and maintain that way. Feel 
free to re-implement it with integers if you want.

Regards,
-- 
Denis Charmet - TypX


More information about the vlc-devel mailing list