vlc | branch: master | Steve Lhomme <[email protected]> | Wed Jul 4 13:21:15 2018 +0200| [e5e212e41775de96fde9ab1d2ded390617844236] | committer: Steve Lhomme
vlc_tick: add a macro to convert milliseconds to msftime_t > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e5e212e41775de96fde9ab1d2ded390617844236 --- include/vlc_tick.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/vlc_tick.h b/include/vlc_tick.h index 31d7ee8905..6f2176aad7 100644 --- a/include/vlc_tick.h +++ b/include/vlc_tick.h @@ -148,6 +148,7 @@ static inline double secf_from_vlc_tick(vlc_tick_t vtk) typedef int64_t msftime_t; #define MSFTIME_FROM_SEC(sec) (INT64_C(10000000) * (sec)) /* seconds in msftime_t */ +#define MSFTIME_FROM_MS(sec) (INT64_C(10000) * (sec)) /* milliseconds in msftime_t */ #if (CLOCK_FREQ % 10000000) == 0 #define VLC_TICK_FROM_MSFTIME(msft) ((msft) * (CLOCK_FREQ / INT64_C(10000000)) _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
