1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-01-13 21:28:01 +02:00

avfilter/avf_ahistogram: fix off by one in slide mode

This commit is contained in:
Paul B Mahol 2022-03-19 10:50:56 +01:00
parent df2edfe1b0
commit 7ae2ded0d1

View File

@ -400,7 +400,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
if (s->slide == SCROLL) {
for (p = 0; p < 4; p++) {
for (y = s->h; y >= H + 1; y--) {
for (y = s->h - 1; y >= H + 1; y--) {
memmove(s->out->data[p] + (y ) * s->out->linesize[p],
s->out->data[p] + (y-1) * s->out->linesize[p], w);
}