You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
lavfi/histeq: fix out of array write
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
@@ -235,7 +235,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *inpic)
|
|||||||
dst[x + histeq->rgba_map[R]] = r;
|
dst[x + histeq->rgba_map[R]] = r;
|
||||||
dst[x + histeq->rgba_map[G]] = g;
|
dst[x + histeq->rgba_map[G]] = g;
|
||||||
dst[x + histeq->rgba_map[B]] = b;
|
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]++;
|
histeq->out_histogram[oluma]++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user