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

Martin Storsjö martin at martin.st
Fri Jun 7 12:10:49 EEST 2024


On Fri, 7 Jun 2024, Zhao Zhili wrote:

> 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.34.1

LGTM

// Martin



More information about the ffmpeg-devel mailing list