Message ID | 20190522103806.12935-1-epirat07@gmail.com |
---|---|
State | Superseded |
Headers | show |
diff --git a/libavutil/time.c b/libavutil/time.c index afa6658aa6..42a7c1792f 100644 --- a/libavutil/time.c +++ b/libavutil/time.c @@ -57,7 +57,7 @@ int64_t av_gettime_relative(void) { #if HAVE_CLOCK_GETTIME && defined(CLOCK_MONOTONIC) #ifdef __APPLE__ - if (clock_gettime) + if (&clock_gettime != NULL) #endif { struct timespec ts; @@ -72,7 +72,7 @@ int av_gettime_relative_is_monotonic(void) { #if HAVE_CLOCK_GETTIME && defined(CLOCK_MONOTONIC) #ifdef __APPLE__ - if (!clock_gettime) + if (&clock_gettime == NULL) return 0; #endif return 1;