--- libavcodec/audiotoolboxenc.c.orig	2023-11-11 01:25:17
+++ libavcodec/audiotoolboxenc.c	2023-11-13 09:49:29
@@ -69,7 +69,7 @@
             return kAudioFormatMPEG4AAC_HE_V2;
         case AV_PROFILE_AAC_LD:
             return kAudioFormatMPEG4AAC_LD;
-#if MAC_OS_X_VERSION_MIN_REQUIRED >= 1060
+#if MAC_OS_X_VERSION_MAX_ALLOWED >= 1070
         case AV_PROFILE_AAC_ELD:
             return kAudioFormatMPEG4AAC_ELD;
 #endif
