[FFmpeg-cvslog] opusenc: don't set avctx->cutoff

Rostislav Pehlivanov git at videolan.org
Tue Jul 11 01:52:19 EEST 2017


ffmpeg | branch: master | Rostislav Pehlivanov <atomnuker at gmail.com> | Mon Jul 10 23:43:53 2017 +0100| [8041b2420f11758a4b2e573729cb31e2cf686ca1] | committer: Rostislav Pehlivanov

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 at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=8041b2420f11758a4b2e573729cb31e2cf686ca1
---

 libavcodec/opusenc.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/libavcodec/opusenc.c b/libavcodec/opusenc.c
index 303f11f7e7..8aba291e7e 100644
--- a/libavcodec/opusenc.c
+++ b/libavcodec/opusenc.c
@@ -1049,8 +1049,6 @@ static av_cold int opus_encode_init(AVCodecContext *avctx)
     /* Initial padding will change if SILK is ever supported */
     avctx->initial_padding = 120;
 
-    avctx->cutoff = !avctx->cutoff ? 20000 : avctx->cutoff;
-
     if (!avctx->bit_rate) {
         int coupled = ff_opus_default_coupled_streams[s->channels - 1];
         avctx->bit_rate = coupled*(96000) + (s->channels - coupled*2)*(48000);



More information about the ffmpeg-cvslog mailing list