opusenc: don't set avctx->cutoff

Its only use is to adjust the aac psychoacoustic/filter system which
isn't used here.

Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
This commit is contained in:
Rostislav Pehlivanov 2017-07-10 23:43:53 +01:00
parent 03d8fbc09c
commit 8041b2420f

View File

@ -1049,8 +1049,6 @@ static av_cold int opus_encode_init(AVCodecContext *avctx)
/* Initial padding will change if SILK is ever supported */ /* Initial padding will change if SILK is ever supported */
avctx->initial_padding = 120; avctx->initial_padding = 120;
avctx->cutoff = !avctx->cutoff ? 20000 : avctx->cutoff;
if (!avctx->bit_rate) { if (!avctx->bit_rate) {
int coupled = ff_opus_default_coupled_streams[s->channels - 1]; int coupled = ff_opus_default_coupled_streams[s->channels - 1];
avctx->bit_rate = coupled*(96000) + (s->channels - coupled*2)*(48000); avctx->bit_rate = coupled*(96000) + (s->channels - coupled*2)*(48000);