1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

avfilter/vf_colorbalance: fix off by one overflow

Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
Paul B Mahol 2018-05-05 16:11:35 +02:00
parent d1e1872418
commit 2017b4b1c2

View File

@ -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++) {