mirror of https://git.ffmpeg.org/ffmpeg.git
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[.
This commit is contained in:
parent
7cc4b306eb
commit
03ac6aa627
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue