aboutsummaryrefslogtreecommitdiffstats
path: root/libSACdec/src
diff options
context:
space:
mode:
authorFraunhofer IIS FDK <audio-fdk@iis.fraunhofer.de>2019-10-29 13:07:10 +0100
committerJean-Michel Trivi <jmtrivi@google.com>2019-12-27 09:02:47 -0800
commitee6c6fa4ba104941150998d53792af80ab9b3b5a (patch)
tree845bfc66a5ddd11ffceaaaf0ceb60d19c07b996d /libSACdec/src
parent24171ed080e447c3ed01643833ba711dcae91293 (diff)
downloadfdk-aac-ee6c6fa4ba104941150998d53792af80ab9b3b5a.tar.gz
fdk-aac-ee6c6fa4ba104941150998d53792af80ab9b3b5a.tar.bz2
fdk-aac-ee6c6fa4ba104941150998d53792af80ab9b3b5a.zip
Fix dry and wet energy initialization in subbandTPInit().
Bug: 145668025 Test: atest DecoderTestXheAac ; atest DecoderTestAacDrc Change-Id: Iadf5d4ebcecfa544b688a69d569ad515c0affade
Diffstat (limited to 'libSACdec/src')
-rw-r--r--libSACdec/src/sac_stp.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/libSACdec/src/sac_stp.cpp b/libSACdec/src/sac_stp.cpp
index 818e9df..17e4472 100644
--- a/libSACdec/src/sac_stp.cpp
+++ b/libSACdec/src/sac_stp.cpp
@@ -1,7 +1,7 @@
/* -----------------------------------------------------------------------------
Software License for The Fraunhofer FDK AAC Codec Library for Android
-© Copyright 1995 - 2018 Fraunhofer-Gesellschaft zur Förderung der angewandten
+© Copyright 1995 - 2019 Fraunhofer-Gesellschaft zur Förderung der angewandten
Forschung e.V. All rights reserved.
1. INTRODUCTION
@@ -305,12 +305,10 @@ SACDEC_ERROR subbandTPInit(HANDLE_STP_DEC self) {
for (ch = 0; ch < MAX_OUTPUT_CHANNELS; ch++) {
self->prev_tp_scale[ch] = FL2FXCONST_DBL(1.0f / (1 << SF_SCALE));
- self->oldWetEnerLD64[ch] =
- FL2FXCONST_DBL(0.34375f); /* 32768.0*32768.0/2^(44-26-10) */
+ self->oldWetEnerLD64[ch] = FL2FXCONST_DBL(0.0);
}
for (ch = 0; ch < MAX_INPUT_CHANNELS; ch++) {
- self->oldDryEnerLD64[ch] =
- FL2FXCONST_DBL(0.1875f); /* 32768.0*32768.0/2^(44-26) */
+ self->oldDryEnerLD64[ch] = FL2FXCONST_DBL(0.0);
}
self->BP = BP__FDK;