summaryrefslogtreecommitdiff
path: root/libavcodec/audiotoolboxdec.c
diff options
context:
space:
mode:
authorDmitry Kalinkin <dmitry.kalinkin@gmail.com>2016-09-06 07:11:17 +0300
committerMichael Niedermayer <michael@niedermayer.cc>2016-11-14 02:35:26 +0100
commitdc23e359ef708b6e2c5fecd4b3c019bab85d102d (patch)
treeb25df5c8c449411f46b71034f14af647c6873606 /libavcodec/audiotoolboxdec.c
parent83b6b434fffc2749b3012fa3608d90939faddbb8 (diff)
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.c2
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