diff options
author | Thilo Borgmann <thilo.borgmann@mail.de> | 2023-12-12 22:01:14 +0100 |
---|---|---|
committer | Thilo Borgmann <thilo.borgmann@mail.de> | 2023-12-12 22:01:14 +0100 |
commit | 03ac6aa627e82b4c9b6b6637547a58b4aa9297cb (patch) | |
tree | c380842acdd8c9b7e9bd08d17eb840316d709fd0 /libavdevice | |
parent | 7cc4b306eb8ab4da3b051fcc531cc5fad47f5271 (diff) | |
download | ffmpeg-03ac6aa627e82b4c9b6b6637547a58b4aa9297cb.tar.gz |
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[.
Diffstat (limited to 'libavdevice')
-rw-r--r-- | libavdevice/audiotoolbox.m | 2 |
1 files changed, 1 insertions, 1 deletions
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; |