History

avfilter/avf_ahistogram: fix off by one in slide mode

Paul B Mahol committed 4 years ago

Commit 7ae2ded1 parent df2edfe1 file · +1 −1Browse files

Unified · Split

libavfilter/avf_ahistogram.c+1−1
@@ -400,7 +400,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in) · 399 unmodified lines
400 400
401 if (s->slide == SCROLL) {401 if (s->slide == SCROLL) {
402 for (p = 0; p < 4; p++) {402 for (p = 0; p < 4; p++) {
403 for (y = s->h; y >= H + 1; y--) {403 for (y = s->h - 1; y >= H + 1; y--) {
404 memmove(s->out->data[p] + (y ) * s->out->linesize[p],404 memmove(s->out->data[p] + (y ) * s->out->linesize[p],
405 s->out->data[p] + (y-1) * s->out->linesize[p], w);405 s->out->data[p] + (y-1) * s->out->linesize[p], w);
406 }406 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t