mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-20 14:31:09 +00:00
lavfi/histeq: fix out of array write
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
161dee4321
commit
b8edf91657
@ -235,7 +235,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *inpic)
|
||||
dst[x + histeq->rgba_map[R]] = r;
|
||||
dst[x + histeq->rgba_map[G]] = g;
|
||||
dst[x + histeq->rgba_map[B]] = b;
|
||||
oluma = (55 * r + 182 * g + 19 * b) >> 8;
|
||||
oluma = av_clip_uint8((55 * r + 182 * g + 19 * b) >> 8);
|
||||
histeq->out_histogram[oluma]++;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user