Fix dry and wet energy initialization in subbandTPInit().

Bug: 145668025
Test: atest DecoderTestXheAac ; atest DecoderTestAacDrc
Change-Id: Iadf5d4ebcecfa544b688a69d569ad515c0affade
This commit is contained in:
Fraunhofer IIS FDK 2019-10-29 13:07:10 +01:00 committed by Jean-Michel Trivi
parent 24171ed080
commit ee6c6fa4ba
1 changed files with 3 additions and 5 deletions

View File

@ -1,7 +1,7 @@
/* ----------------------------------------------------------------------------- /* -----------------------------------------------------------------------------
Software License for The Fraunhofer FDK AAC Codec Library for Android 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. Forschung e.V. All rights reserved.
1. INTRODUCTION 1. INTRODUCTION
@ -305,12 +305,10 @@ SACDEC_ERROR subbandTPInit(HANDLE_STP_DEC self) {
for (ch = 0; ch < MAX_OUTPUT_CHANNELS; ch++) { for (ch = 0; ch < MAX_OUTPUT_CHANNELS; ch++) {
self->prev_tp_scale[ch] = FL2FXCONST_DBL(1.0f / (1 << SF_SCALE)); self->prev_tp_scale[ch] = FL2FXCONST_DBL(1.0f / (1 << SF_SCALE));
self->oldWetEnerLD64[ch] = self->oldWetEnerLD64[ch] = FL2FXCONST_DBL(0.0);
FL2FXCONST_DBL(0.34375f); /* 32768.0*32768.0/2^(44-26-10) */
} }
for (ch = 0; ch < MAX_INPUT_CHANNELS; ch++) { for (ch = 0; ch < MAX_INPUT_CHANNELS; ch++) {
self->oldDryEnerLD64[ch] = self->oldDryEnerLD64[ch] = FL2FXCONST_DBL(0.0);
FL2FXCONST_DBL(0.1875f); /* 32768.0*32768.0/2^(44-26) */
} }
self->BP = BP__FDK; self->BP = BP__FDK;