summaryrefslogtreecommitdiff
path: root/libavfilter
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2022-03-19 10:50:56 +0100
committerPaul B Mahol <onemda@gmail.com>2022-03-19 10:53:38 +0100
commit7ae2ded0d12bb36a82ee928c3a543a00aee4b466 (patch)
treee0ed741d8aead599952873b81583181d02cf832e /libavfilter
parentdf2edfe1b0c3f842689c25a541563e77db84cad2 (diff)
avfilter/avf_ahistogram: fix off by one in slide mode
Diffstat (limited to 'libavfilter')
-rw-r--r--libavfilter/avf_ahistogram.c2
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);
}