summaryrefslogtreecommitdiffstats
path: root/osdep/win32
diff options
context:
space:
mode:
authorsfan5 <sfan5@live.de>2023-10-21 15:56:01 +0200
committersfan5 <sfan5@live.de>2023-10-21 15:56:01 +0200
commit97afea441bbec44df96b5cce908cd4a8c15a6b95 (patch)
tree31682488945b55e29b856625c4f71dcff057d369 /osdep/win32
parent490af95c10e15b33b1a3605ee16805b8e4bf73eb (diff)
downloadmpv-97afea441bbec44df96b5cce908cd4a8c15a6b95.tar.bz2
mpv-97afea441bbec44df96b5cce908cd4a8c15a6b95.tar.xz
win32/pthread: fix calculation error in pthread_cond_timedwait
closes #12699
Diffstat (limited to 'osdep/win32')
-rw-r--r--osdep/win32/pthread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/osdep/win32/pthread.c b/osdep/win32/pthread.c
index 11a0c50476..d25a3da693 100644
--- a/osdep/win32/pthread.c
+++ b/osdep/win32/pthread.c
@@ -128,7 +128,7 @@ int pthread_cond_timedwait(pthread_cond_t *restrict cond,
timeout_ms = INFINITE;
} else if (abstime->tv_sec >= ts.tv_sec) {
int64_t msec = (abstime->tv_sec - ts.tv_sec) * INT64_C(1000) +
- (abstime->tv_nsec - ts.tv_nsec) / INT64_C(10000000);
+ (abstime->tv_nsec - ts.tv_nsec) / INT64_C(1000000);
if (msec > ULONG_MAX) {
timeout_ms = INFINITE;
} else if (msec > 0) {