diff options
author | Rostislav Pehlivanov <atomnuker@gmail.com> | 2017-07-11 21:29:22 +0100 |
---|---|---|
committer | Rostislav Pehlivanov <atomnuker@gmail.com> | 2017-07-11 21:36:48 +0100 |
commit | aef5f9ab05c3acad2cc5d141686a76c974c8927b (patch) | |
tree | cf2ab26f80878ca5c5076e586d10a54d3741cf67 /libavcodec/aacdec_template.c | |
parent | 02d248d5828dbbfecfb37597c626900f41448bea (diff) | |
download | ffmpeg-aef5f9ab05c3acad2cc5d141686a76c974c8927b.tar.gz |
mdct15: remove redundant scale argument to imdct_half
The only use of that argument was for Opus downmixing which is very rare
and better done after the mdcts.
Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
Diffstat (limited to 'libavcodec/aacdec_template.c')
-rw-r--r-- | libavcodec/aacdec_template.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/aacdec_template.c b/libavcodec/aacdec_template.c index 4b98142536..2a2d43f0a4 100644 --- a/libavcodec/aacdec_template.c +++ b/libavcodec/aacdec_template.c @@ -1211,7 +1211,7 @@ static av_cold int aac_decode_init(AVCodecContext *avctx) AAC_RENAME_32(ff_mdct_init)(&ac->mdct_small, 8, 1, 1.0 / RANGE15(128.0)); AAC_RENAME_32(ff_mdct_init)(&ac->mdct_ltp, 11, 0, RANGE15(-2.0)); #if !USE_FIXED - ret = ff_mdct15_init(&ac->mdct480, 1, 5, -1.0f); + ret = ff_mdct15_init(&ac->mdct480, 1, 5, -1.0f/(16*1024*960)); if (ret < 0) return ret; #endif @@ -2664,7 +2664,7 @@ static void imdct_and_windowing_eld(AACContext *ac, SingleChannelElement *sce) } #if !USE_FIXED if (n == 480) - ac->mdct480->imdct_half(ac->mdct480, buf, in, 1, -1.f/(16*1024*960)); + ac->mdct480->imdct_half(ac->mdct480, buf, in, 1); else #endif ac->mdct.imdct_half(&ac->mdct_ld, buf, in); |