summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libavcodec/aacenc.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libavcodec/aacenc.c b/libavcodec/aacenc.c
index 899111bea1..444ca0e5c2 100644
--- a/libavcodec/aacenc.c
+++ b/libavcodec/aacenc.c
@@ -797,6 +797,11 @@ static av_cold int aac_encode_init(AVCodecContext *avctx)
ERROR_IF(1, "Unsupported profile %d\n", avctx->profile);
}
+ if (s->options.aac_coder != AAC_CODER_TWOLOOP) {
+ s->options.intensity_stereo = 0;
+ s->options.pns = 0;
+ }
+
avctx->bit_rate = (int)FFMIN(
6144 * s->channels / 1024.0 * avctx->sample_rate,
avctx->bit_rate);