summaryrefslogtreecommitdiffstats
path: root/libavcodec/audiotoolboxenc.c
diff options
context:
space:
mode:
authorRodger Combs <rodger.combs@gmail.com>2016-03-27 12:17:25 -0500
committerRodger Combs <rodger.combs@gmail.com>2016-04-02 03:03:13 -0500
commit36770d876937db538179f6c87b57e3b5b609013c (patch)
treea308eccd27fd70d039223e0bad774412570fd52e /libavcodec/audiotoolboxenc.c
parent0667327f3fc7cad854712fcdbe13b7d15c791426 (diff)
downloadffmpeg-streaming-36770d876937db538179f6c87b57e3b5b609013c.zip
ffmpeg-streaming-36770d876937db538179f6c87b57e3b5b609013c.tar.gz
lavc/audiotoolboxenc: allow setting maxrate with pre-10.9 deployment targets
The build failure here is caused by the enum value not being defined, but as long as we're on a newer SDK that has it, it's safe to use it even when our deployment target is older. Setting the property will error, but we're not failing on errors there.
Diffstat (limited to 'libavcodec/audiotoolboxenc.c')
-rw-r--r--libavcodec/audiotoolboxenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/audiotoolboxenc.c b/libavcodec/audiotoolboxenc.c
index 2fca15b..855df0c 100644
--- a/libavcodec/audiotoolboxenc.c
+++ b/libavcodec/audiotoolboxenc.c
@@ -428,7 +428,7 @@ static av_cold int ffat_init_encoder(AVCodecContext *avctx)
ffat_update_ctx(avctx);
-#if !TARGET_OS_IPHONE && __MAC_OS_X_VERSION_MIN_REQUIRED >= 1090
+#if !TARGET_OS_IPHONE && defined(__MAC_10_9)
if (at->mode == kAudioCodecBitRateControlMode_Variable && avctx->rc_max_rate) {
UInt32 max_size = avctx->rc_max_rate * avctx->frame_size / avctx->sample_rate;
if (max_size)
OpenPOWER on IntegriCloud