libobs: Implement and use better scaling function for 64-bit integers
As os_gettime_ns() gets large the current scaling methods, mostly by casting
to uint64_t, may lead to numerical overflows. Sweep the code and use
util_mul_div64() where applicable.
Signed-off-by: NHans Petter Selasky <hps@selasky.org>
Showing
libobs/util/util_uint64.h
0 → 100644
想要评论请 注册 或 登录