[FFmpeg-cvslog] avutil/timer: Fix missing header for mach_absolute_time
Zhao Zhili
git at videolan.org
Tue Jun 18 10:36:43 EEST 2024
ffmpeg | branch: master | Zhao Zhili <zhilizhao at tencent.com> | 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 <zhilizhao at tencent.com>
> 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>
More information about the ffmpeg-cvslog
mailing list