[FFmpeg-cvslog] avdevice/audiotoolbox: Fix availability macro check
Thilo Borgmann
git at videolan.org
Tue Dec 12 23:01:50 EET 2023
ffmpeg | branch: master | Thilo Borgmann <thilo.borgmann at mail.de> | Tue Dec 12 22:01:14 2023 +0100| [03ac6aa627e82b4c9b6b6637547a58b4aa9297cb] | committer: Thilo Borgmann
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[.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=03ac6aa627e82b4c9b6b6637547a58b4aa9297cb
---
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;
More information about the ffmpeg-cvslog
mailing list