History

avfilter/vf_convolution: use correct stride variable

Paul B Mahol committed 5 years ago

Commit a0acc441 parent 0fff6c01 file · +3 −3Browse files

Unified · Split

libavfilter/vf_convolution.c+3−3
@@ -523,11 +523,11 @@ static int filter_slice(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs) · 522 unmodified lines
523523
524524 for (y = slice_start; y < slice_end; y++) {
525525 const int xoff = mode == MATRIX_COLUMN ? (y - slice_start) * bpc : radius * bpc;
526− const int yoff = mode == MATRIX_COLUMN ? radius * stride : 0;
526+ const int yoff = mode == MATRIX_COLUMN ? radius * dstride : 0;
527527
528528 for (x = 0; x < radius; x++) {
529529 const int xoff = mode == MATRIX_COLUMN ? (y - slice_start) * bpc : x * bpc;
530− const int yoff = mode == MATRIX_COLUMN ? x * stride : 0;
530+ const int yoff = mode == MATRIX_COLUMN ? x * dstride : 0;
531531
532532 s->setup[plane](radius, c, src, stride, x, width, y, height, bpc);
533533 s->filter[plane](dst + yoff + xoff, 1, rdiv,
@@ -540,7 +540,7 @@ static int filter_slice(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs) · 6 unmodified lines
540540 dstride, stride);
541541 for (x = sizew - radius; x < sizew; x++) {
542542 const int xoff = mode == MATRIX_COLUMN ? (y - slice_start) * bpc : x * bpc;
543− const int yoff = mode == MATRIX_COLUMN ? x * stride : 0;
543+ const int yoff = mode == MATRIX_COLUMN ? x * dstride : 0;
544544
545545 s->setup[plane](radius, c, src, stride, x, width, y, height, bpc);
546546 s->filter[plane](dst + yoff + xoff, 1, rdiv,

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