aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Michel Trivi <jmtrivi@google.com>2018-12-28 15:17:25 -0800
committerandroid-build-merger <android-build-merger@google.com>2018-12-28 15:17:25 -0800
commitf04d154c74d0cd70d400834020ccab3238e0af78 (patch)
tree46fd8be5a136cd5ebe63ed54e454e672ff68f091
parentd6459f539c03df17c6aa75915d31a9d8c8adcca2 (diff)
parenta129f9b2662114c59b63a7b2d2a7266ce10bc29a (diff)
downloadfdk-aac-f04d154c74d0cd70d400834020ccab3238e0af78.tar.gz
fdk-aac-f04d154c74d0cd70d400834020ccab3238e0af78.tar.bz2
fdk-aac-f04d154c74d0cd70d400834020ccab3238e0af78.zip
Merge "Reset all noisefloor levels in leanSbrConcealment()" am: c19c36cbfc
am: a129f9b266 Change-Id: I8362c86b61b9bcc69edb8015de14a287b9932f8f
-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,