Commit 2820c9df authored by Paul B Mahol's avatar Paul B Mahol

avfilter/af_superequalizer: fix out of array access

Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent 5f897470
......@@ -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];
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment