From 03ac6aa627e82b4c9b6b6637547a58b4aa9297cb Mon Sep 17 00:00:00 2001 From: Thilo Borgmann Date: Tue, 12 Dec 2023 22:01:14 +0100 Subject: [PATCH] avdevice/audiotoolbox: Fix availability macro check Since OSX 10.10 the availability macros expand into a 6 digit number instead of a 4 digit number. Fixes compilation for OSX version [10.0, 12.0[. --- libavdevice/audiotoolbox.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavdevice/audiotoolbox.m b/libavdevice/audiotoolbox.m index ae91a2bc62..3bd707f236 100644 --- a/libavdevice/audiotoolbox.m +++ b/libavdevice/audiotoolbox.m @@ -85,7 +85,7 @@ static av_cold int at_write_header(AVFormatContext *avctx) AudioObjectPropertyAddress prop; prop.mSelector = kAudioHardwarePropertyDevices; prop.mScope = kAudioObjectPropertyScopeGlobal; -#if !TARGET_OS_IPHONE && __MAC_OS_X_VERSION_MIN_REQUIRED >= 1200 +#if !TARGET_OS_IPHONE && __MAC_OS_X_VERSION_MIN_REQUIRED >= 120000 prop.mElement = kAudioObjectPropertyElementMain; #else prop.mElement = kAudioObjectPropertyElementMaster;