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
523 523
524 for (y = slice_start; y < slice_end; y++) {524 for (y = slice_start; y < slice_end; y++) {
525 const int xoff = mode == MATRIX_COLUMN ? (y - slice_start) * bpc : radius * bpc;525 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;
527 527
528 for (x = 0; x < radius; x++) {528 for (x = 0; x < radius; x++) {
529 const int xoff = mode == MATRIX_COLUMN ? (y - slice_start) * bpc : x * bpc;529 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;
531 531
532 s->setup[plane](radius, c, src, stride, x, width, y, height, bpc);532 s->setup[plane](radius, c, src, stride, x, width, y, height, bpc);
533 s->filter[plane](dst + yoff + xoff, 1, rdiv,533 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
540 dstride, stride);540 dstride, stride);
541 for (x = sizew - radius; x < sizew; x++) {541 for (x = sizew - radius; x < sizew; x++) {
542 const int xoff = mode == MATRIX_COLUMN ? (y - slice_start) * bpc : x * bpc;542 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;
544 544
545 s->setup[plane](radius, c, src, stride, x, width, y, height, bpc);545 s->setup[plane](radius, c, src, stride, x, width, y, height, bpc);
546 s->filter[plane](dst + yoff + xoff, 1, rdiv,546 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