From dc23e359ef708b6e2c5fecd4b3c019bab85d102d Mon Sep 17 00:00:00 2001 From: Dmitry Kalinkin Date: Tue, 6 Sep 2016 07:11:17 +0300 Subject: [PATCH] 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 Signed-off-by: Dmitry Kalinkin Previous version reviewed by: Rodger Combs Signed-off-by: Michael Niedermayer --- libavcodec/audiotoolboxdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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