diff options
Diffstat (limited to 'osdep')
-rw-r--r-- | osdep/timer.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/osdep/timer.c b/osdep/timer.c index 583a94c28a..8dd5915b72 100644 --- a/osdep/timer.c +++ b/osdep/timer.c @@ -119,6 +119,7 @@ struct timespec mp_time_us_to_timespec(int64_t time_us) diff_secs += 1; diff_nsecs -= 1000000000UL; } + diff_secs = MPMIN(diff_secs, 10000000); if (diff_secs > MAX_TIME_T - ts.tv_sec) diff_secs = MAX_TIME_T - ts.tv_sec; ts.tv_sec += diff_secs; |