ffmpeg | branch: master | Zhao Zhili <[email protected]> | Tue Jun 18 
01:03:59 2024 +0800| [ec1daa39e046df27b0b0ba30b57391464c710228] | committer: 
Zhao Zhili

avutil/timer: Fix missing header for mach_absolute_time

mach/mach_time.h was included only when CONFIG_MACOS_KPERF wasn't
been defined.

Signed-off-by: Zhao Zhili <[email protected]>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=ec1daa39e046df27b0b0ba30b57391464c710228
---

 libavutil/timer.h | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/libavutil/timer.h b/libavutil/timer.h
index 6bd6a0c645..9fe6aa1385 100644
--- a/libavutil/timer.h
+++ b/libavutil/timer.h
@@ -44,7 +44,9 @@
 
 #if CONFIG_MACOS_KPERF
 #include "macos_kperf.h"
-#elif HAVE_MACH_ABSOLUTE_TIME
+#endif
+
+#if HAVE_MACH_ABSOLUTE_TIME
 #include <mach/mach_time.h>
 #elif HAVE_CLOCK_GETTIME
 #include <time.h>

_______________________________________________
ffmpeg-cvslog mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".

Reply via email to