avfilter/avf_ahistogram: fix off by one in slide mode
This commit is contained in:
parent
df2edfe1b0
commit
7ae2ded0d1
@ -400,7 +400,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in)
|
|||||||
|
|
||||||
if (s->slide == SCROLL) {
|
if (s->slide == SCROLL) {
|
||||||
for (p = 0; p < 4; p++) {
|
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],
|
memmove(s->out->data[p] + (y ) * s->out->linesize[p],
|
||||||
s->out->data[p] + (y-1) * s->out->linesize[p], w);
|
s->out->data[p] + (y-1) * s->out->linesize[p], w);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user