diff options
author | Paul B Mahol <onemda@gmail.com> | 2022-03-19 10:50:56 +0100 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2022-03-19 10:53:38 +0100 |
commit | 7ae2ded0d12bb36a82ee928c3a543a00aee4b466 (patch) | |
tree | e0ed741d8aead599952873b81583181d02cf832e | |
parent | df2edfe1b0c3f842689c25a541563e77db84cad2 (diff) | |
download | ffmpeg-7ae2ded0d12bb36a82ee928c3a543a00aee4b466.tar.gz |
avfilter/avf_ahistogram: fix off by one in slide mode
-rw-r--r-- | libavfilter/avf_ahistogram.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/avf_ahistogram.c b/libavfilter/avf_ahistogram.c index 71b0cdf04c..ebd4949b3d 100644 --- a/libavfilter/avf_ahistogram.c +++ b/libavfilter/avf_ahistogram.c @@ -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); } |