[FFmpeg-devel] [PATCH v3 1/4] avutil/aarch64: Skip define AV_READ_TIME for apple

Zhao Zhili quinkblack at foxmail.com
Fri Jun 7 16:44:49 EEST 2024


From: Zhao Zhili <zhilizhao at tencent.com>

It will fallback to mach_absolute_time inside libavutil/timer.h
---
 libavutil/aarch64/timer.h | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/libavutil/aarch64/timer.h b/libavutil/aarch64/timer.h
index 8b28fd354c..fadc9568f8 100644
--- a/libavutil/aarch64/timer.h
+++ b/libavutil/aarch64/timer.h
@@ -24,13 +24,7 @@
 #include <stdint.h>
 #include "config.h"
 
-#if defined(__APPLE__)
-
-#include <mach/mach_time.h>
-
-#define AV_READ_TIME mach_absolute_time
-
-#elif HAVE_INLINE_ASM
+#if HAVE_INLINE_ASM && !defined(__APPLE__)
 
 #define AV_READ_TIME read_time
 
-- 
2.42.0



More information about the ffmpeg-devel mailing list