Fixes a minor bug found by valgrind in the bandwidth detector

The energy calculation from the packed FFTs ended up reading out-of-bound
memory for frequency zero. The bug was exposed by c5e04e4.
This commit is contained in:
Jean-Marc Valin 2013-04-15 02:45:02 -04:00
parent 2fb4f5c439
commit c37834b27e

View file

@ -101,7 +101,7 @@ static const int tbands[NB_TBANDS+1] = {
};
static const int extra_bands[NB_TOT_BANDS+1] = {
0, 2, 4, 6, 8, 10, 12, 14, 16, 20, 24, 28, 32, 40, 48, 56, 68, 80, 96, 120, 160, 200
1, 2, 4, 6, 8, 10, 12, 14, 16, 20, 24, 28, 32, 40, 48, 56, 68, 80, 96, 120, 160, 200
};
/*static const float tweight[NB_TBANDS+1] = {