[FFmpeg-devel] [PATCHv2] lavc/audiotoolboxdec: fix OSX SDK detection

Dmitry Kalinkin dmitry.kalinkin at gmail.com
Tue Sep 6 07:11:17 EEST 2016

__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 at gmail.com>
Signed-off-by: Dmitry Kalinkin <dmitry.kalinkin at gmail.com>
 libavcodec/audiotoolboxdec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/audiotoolboxdec.c b/libavcodec/audiotoolboxdec.c
index 1097668..bf06cf9 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
 #define kAudioFormatEnhancedAC3 'ec-3'
2.7.4 (Apple Git-66)

More information about the ffmpeg-devel mailing list