Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Dennedy <ddennedy@gmail.com>2016-03-25 07:13:18 +0300
committerMichael Niedermayer <michael@niedermayer.cc>2016-03-26 18:35:44 +0300
commit28688d7c2b534cc36004ce27f2fafc6861e67f3f (patch)
tree46f543804e47dc5397f9b3eb6b7afc1829c5ebce /libavcodec/audiotoolboxenc.c
parentde1a0d43595b98c1093c9fc39de0e96fba8e9a06 (diff)
avcodec/audiotoolboxenc: Fix compile error on OS X 10.8.
Fixes error "libavcodec/audiotoolboxenc.c:294:50: error: use of undeclared identifier 'kAudioCodecPropertyPacketSizeLimitForVBR'." That was added to 10.9: https://developer.apple.com/library/mac/releasenotes/General/APIDiffsMacOSX10_9/AudioUnit.html Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/audiotoolboxenc.c')
-rw-r--r--libavcodec/audiotoolboxenc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/audiotoolboxenc.c b/libavcodec/audiotoolboxenc.c
index cb53f2a0df..c4d36f56d1 100644
--- a/libavcodec/audiotoolboxenc.c
+++ b/libavcodec/audiotoolboxenc.c
@@ -288,12 +288,14 @@ 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 (at->mode == kAudioCodecBitRateControlMode_Variable && avctx->rc_max_rate) {
int max_size = avctx->rc_max_rate * avctx->frame_size / avctx->sample_rate;
if (max_size)
AudioConverterSetProperty(at->converter, kAudioCodecPropertyPacketSizeLimitForVBR,
size, &max_size);
}
+#endif
ff_af_queue_init(avctx, &at->afq);