diff options
author | Rostislav Pehlivanov <atomnuker@gmail.com> | 2015-10-17 02:08:34 +0100 |
---|---|---|
committer | Rostislav Pehlivanov <atomnuker@gmail.com> | 2015-10-17 02:31:20 +0100 |
commit | 8dd2d5e70a303711012decf42fa3c88705392846 (patch) | |
tree | 0ac3717ec84f6d1f0b23dd13f3fd62a9c1860a3e /libavcodec/aacenc.c | |
parent | b9fb1db9b42cfad6b4073daf70ca7b89840a1c15 (diff) | |
download | ffmpeg-8dd2d5e70a303711012decf42fa3c88705392846.tar.gz |
aacenc: indicate that TNS is off by default
Doesn't change anything, just a slight clarification that
under all profiles TNS is currently off. That'll be soon to change
hopefully.
Diffstat (limited to 'libavcodec/aacenc.c')
-rw-r--r-- | libavcodec/aacenc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/aacenc.c b/libavcodec/aacenc.c index 11e0e9e902..4c9819c6b7 100644 --- a/libavcodec/aacenc.c +++ b/libavcodec/aacenc.c @@ -932,7 +932,7 @@ static av_cold int aac_encode_init(AVCodecContext *avctx) ERROR_IF(!p_opt, "Unsupported encoding profile: %d\n", avctx->profile); AAC_OPT_SET(&s->options, p_opt, 1, coder); AAC_OPT_SET(&s->options, p_opt, 0, pns); - AAC_OPT_SET(&s->options, p_opt, 0, tns); + AAC_OPT_SET(&s->options, p_opt, 1, tns); AAC_OPT_SET(&s->options, p_opt, 0, pred); AAC_OPT_SET(&s->options, p_opt, 1, mid_side); AAC_OPT_SET(&s->options, p_opt, 0, intensity_stereo); @@ -990,7 +990,7 @@ static const AVOption aacenc_options[] = { {"aac_ms", "Force M/S stereo coding", offsetof(AACEncContext, options.mid_side), AV_OPT_TYPE_BOOL, {.i64 = 0}, -1, 1, AACENC_FLAGS}, {"aac_is", "Intensity stereo coding", offsetof(AACEncContext, options.intensity_stereo), AV_OPT_TYPE_BOOL, {.i64 = OPT_AUTO}, -1, 1, AACENC_FLAGS}, {"aac_pns", "Perceptual noise substitution", offsetof(AACEncContext, options.pns), AV_OPT_TYPE_BOOL, {.i64 = OPT_AUTO}, -1, 1, AACENC_FLAGS}, - {"aac_tns", "Temporal noise shaping", offsetof(AACEncContext, options.tns), AV_OPT_TYPE_BOOL, {.i64 = OPT_AUTO}, -1, 1, AACENC_FLAGS}, + {"aac_tns", "Temporal noise shaping", offsetof(AACEncContext, options.tns), AV_OPT_TYPE_BOOL, {.i64 = 0}, -1, 1, AACENC_FLAGS}, {"aac_pred", "AAC-Main prediction", offsetof(AACEncContext, options.pred), AV_OPT_TYPE_BOOL, {.i64 = OPT_AUTO}, -1, 1, AACENC_FLAGS}, {NULL} }; |