Message ID | 1473135077-12768-1-git-send-email-dmitry.kalinkin@gmail.com |
---|---|
State | Accepted |
Commit | dc23e359ef708b6e2c5fecd4b3c019bab85d102d |
Headers | show |
On Tue, Sep 06, 2016 at 07:11:17AM +0300, Dmitry Kalinkin wrote: > __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> > --- > libavcodec/audiotoolboxdec.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) applied thx [...]
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 +#if __MAC_OS_X_VERSION_MIN_REQUIRED < 101100 #define kAudioFormatEnhancedAC3 'ec-3' #endif
__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> --- libavcodec/audiotoolboxdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)