aboutsummaryrefslogtreecommitdiffstats
path: root/libSBRdec
diff options
context:
space:
mode:
authorFraunhofer IIS FDK <audio-fdk@iis.fraunhofer.de>2018-10-19 16:41:58 +0200
committerJean-Michel Trivi <jmtrivi@google.com>2018-12-27 17:25:13 -0500
commit5cb1030d72e37faa9216d7d7b30f1a7d4f851f79 (patch)
treea0e16e29ce8e416af0c353a18b142fad7c12c984 /libSBRdec
parentecc96969d7db139242dbba9930857ed5ce955b29 (diff)
downloadfdk-aac-5cb1030d72e37faa9216d7d7b30f1a7d4f851f79.tar.gz
fdk-aac-5cb1030d72e37faa9216d7d7b30f1a7d4f851f79.tar.bz2
fdk-aac-5cb1030d72e37faa9216d7d7b30f1a7d4f851f79.zip
Reset all noisefloor levels in leanSbrConcealment()
Test: atest DecoderTestXheAac ; atest DecoderTestAacDrc Change-Id: I6d25e8c8844bdf8e15d1aab695cb5d19d6b232e2
Diffstat (limited to 'libSBRdec')
-rw-r--r--libSBRdec/src/env_dec.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libSBRdec/src/env_dec.cpp b/libSBRdec/src/env_dec.cpp
index 88c92cd..05accd1 100644
--- a/libSBRdec/src/env_dec.cpp
+++ b/libSBRdec/src/env_dec.cpp
@@ -435,8 +435,8 @@ static void leanSbrConcealment(
/* Noisefloor levels are always cleared ... */
h_sbr_data->domain_vec_noise[0] = 1;
- for (i = 0; i < hHeaderData->freqBandData.nNfb; i++)
- h_sbr_data->sbrNoiseFloorLevel[i] = FL2FXCONST_SGL(0.0f);
+ FDKmemclear(h_sbr_data->sbrNoiseFloorLevel,
+ sizeof(h_sbr_data->sbrNoiseFloorLevel));
/* ... and so are the sines */
FDKmemclear(h_sbr_data->addHarmonics,