From 5cda1a5deb9a5427e0fad613e33dea00f4eddd79 Mon Sep 17 00:00:00 2001 From: Dudemanguy Date: Wed, 11 Oct 2023 11:41:15 -0500 Subject: demux: convert cache updates to nanoseconds As a bonus, we can remove the awkward and horribly named MP_SECOND_US. --- osdep/timer.h | 3 --- 1 file changed, 3 deletions(-) (limited to 'osdep/timer.h') diff --git a/osdep/timer.h b/osdep/timer.h index efbfc4e358..3d25055ff0 100644 --- a/osdep/timer.h +++ b/osdep/timer.h @@ -60,9 +60,6 @@ void mp_end_hires_timers(int resolution_ms); #define MP_TIME_NS_TO_MS(ns) ((ns) / (double)1000000) #define MP_TIME_NS_TO_US(ns) ((ns) / (double)1000) -// Duration of a second in mpv time. -#define MP_SECOND_US (1000 * 1000) - // Add a time in seconds to the given time in microseconds, and return it. // Takes care of possible overflows. Never returns a negative or 0 time. int64_t mp_time_us_add(int64_t time_us, double timeout_sec); -- cgit v1.2.3