From 2820c9dfaa1f4093fea471665fdbef9ca7080bcd Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Mon, 19 Jun 2017 18:12:29 +0200 Subject: [PATCH] avfilter/af_superequalizer: fix out of array access Signed-off-by: Paul B Mahol --- libavfilter/af_superequalizer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavfilter/af_superequalizer.c b/libavfilter/af_superequalizer.c index 4c9f215f4c..69d29f44c0 100644 --- a/libavfilter/af_superequalizer.c +++ b/libavfilter/af_superequalizer.c @@ -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]; } }