avfilter/af_superequalizer: fix out of array access

Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
Paul B Mahol 2017-06-19 18:12:29 +02:00
parent 5f89747086
commit 2820c9dfaa
1 changed files with 1 additions and 1 deletions

View File

@ -126,7 +126,7 @@ static void process_param(float *bc, EqParameter *param, float fs)
for (i = 0; i <= NBANDS; i++) {
param[i].lower = i == 0 ? 0 : bands[i - 1];
param[i].upper = i == NBANDS - 1 ? fs : bands[i];
param[i].upper = i == NBANDS ? fs : bands[i];
param[i].gain = bc[i];
}
}