Commit 2017b4b1 authored by Paul B Mahol's avatar Paul B Mahol

avfilter/vf_colorbalance: fix off by one overflow

Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent d1e18724
......@@ -291,7 +291,7 @@ static int config_output(AVFilterLink *outlink)
shadows[i] = low;
midtones[i] = mid;
highlights[max - i] = low;
highlights[max - i - 1] = low;
}
for (i = 0; i < max; 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