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:
parent
2fb4f5c439
commit
c37834b27e
1 changed files with 1 additions and 1 deletions
|
@ -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] = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue