ref: 4b000c37e75b85e265fa8645389c6057d2c88ada
parent: 8b631f2c5fd25f390cdc35703f0fe67ce3387646
author: Jean-Marc Valin <[email protected]>
date: Wed Jan 26 15:30:21 EST 2011
Setting bandE[] to zero after log2Amp when silence=1
--- a/libcelt/celt.c
+++ b/libcelt/celt.c
@@ -1324,10 +1324,7 @@
if (silence)
{
for (i=0;i<C*st->mode->nbEBands;i++)
- {
- bandE[i] = 0;
oldBandE[i] = -QCONST16(28.f,DB_SHIFT);
- }
}
#ifdef RESYNTH
@@ -1338,6 +1335,11 @@
celt_sig *overlap_mem[2];
log2Amp(st->mode, st->start, st->end, bandE, oldBandE, C);
+ if (silence)
+ {
+ for (i=0;i<C*st->mode->nbEBands;i++)
+ bandE[i] = 0;
+ }
#ifdef MEASURE_NORM_MSE
measure_norm_mse(st->mode, X, X0, bandE, bandE0, M, N, C);