mirror of https://git.ffmpeg.org/ffmpeg.git
avfilter/af_superequalizer: fix out of array access
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
5f89747086
commit
2820c9dfaa
|
@ -126,7 +126,7 @@ static void process_param(float *bc, EqParameter *param, float fs)
|
||||||
|
|
||||||
for (i = 0; i <= NBANDS; i++) {
|
for (i = 0; i <= NBANDS; i++) {
|
||||||
param[i].lower = i == 0 ? 0 : bands[i - 1];
|
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];
|
param[i].gain = bc[i];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue