diff options
Diffstat (limited to 'video/out/present_sync.c')
-rw-r--r-- | video/out/present_sync.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/video/out/present_sync.c b/video/out/present_sync.c index 5c8ae42ab5..e7112ccc39 100644 --- a/video/out/present_sync.c +++ b/video/out/present_sync.c @@ -70,8 +70,8 @@ void present_sync_swap(struct mp_present *present) if (clock_gettime(CLOCK_MONOTONIC, &ts)) return; - int64_t now_monotonic = ts.tv_sec * 1000000LL + ts.tv_nsec / 1000; - int64_t ust_mp_time = mp_time_us() - (now_monotonic - ust); + int64_t now_monotonic = ts.tv_sec * UINT64_C(1000000000) + ts.tv_nsec; + int64_t ust_mp_time = mp_time_ns() - (now_monotonic - ust); present->last_queue_display_time = ust_mp_time; } |