diff options
author | Dmitry Kalinkin <dmitry.kalinkin@gmail.com> | 2016-09-06 07:11:17 +0300 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2016-11-14 02:35:26 +0100 |
commit | dc23e359ef708b6e2c5fecd4b3c019bab85d102d (patch) | |
tree | b25df5c8c449411f46b71034f14af647c6873606 /libavcodec/audiotoolboxdec.c | |
parent | 83b6b434fffc2749b3012fa3608d90939faddbb8 (diff) | |
download | ffmpeg-dc23e359ef708b6e2c5fecd4b3c019bab85d102d.tar.gz |
lavc/audiotoolboxdec: fix OSX SDK detection
__MAC_10_11 can be present in updated revision of an older SDK so it
can't reliably detect availability of kAudioFormatEnhancedAC3 constant.
Fixes: b4daa2c40f ('lavc/audiotoolboxdec: add eac3 decoder')
Cc: Rodger Combs <rodger.combs@gmail.com>
Signed-off-by: Dmitry Kalinkin <dmitry.kalinkin@gmail.com>
Previous version reviewed by: Rodger Combs <rodger.combs@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/audiotoolboxdec.c')
-rw-r--r-- | libavcodec/audiotoolboxdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/audiotoolboxdec.c b/libavcodec/audiotoolboxdec.c index 3066d47b11..04a9be9fcb 100644 --- a/libavcodec/audiotoolboxdec.c +++ b/libavcodec/audiotoolboxdec.c @@ -32,7 +32,7 @@ #include "libavutil/opt.h" #include "libavutil/log.h" -#ifndef __MAC_10_11 +#if __MAC_OS_X_VERSION_MIN_REQUIRED < 101100 #define kAudioFormatEnhancedAC3 'ec-3' #endif |