aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2021-01-10 17:26:21 +0100
committerPaul B Mahol <onemda@gmail.com>2021-01-10 17:27:27 +0100
commita0acc44106ea615cf378048fc721e7d5af871bf7 (patch)
treeedf9722664a9795d08550889040c18a724a07eb8
parent0fff6c039c7e52c41ec003b5ab47b5adb3daeb48 (diff)
downloadffmpeg-a0acc44106ea615cf378048fc721e7d5af871bf7.tar.gz
avfilter/vf_convolution: use correct stride variable
-rw-r--r--libavfilter/vf_convolution.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavfilter/vf_convolution.c b/libavfilter/vf_convolution.c
index 0514c235a9..c238dae925 100644
--- a/libavfilter/vf_convolution.c
+++ b/libavfilter/vf_convolution.c
@@ -523,11 +523,11 @@ static int filter_slice(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
for (y = slice_start; y < slice_end; y++) {
const int xoff = mode == MATRIX_COLUMN ? (y - slice_start) * bpc : radius * bpc;
- const int yoff = mode == MATRIX_COLUMN ? radius * stride : 0;
+ const int yoff = mode == MATRIX_COLUMN ? radius * dstride : 0;
for (x = 0; x < radius; x++) {
const int xoff = mode == MATRIX_COLUMN ? (y - slice_start) * bpc : x * bpc;
- const int yoff = mode == MATRIX_COLUMN ? x * stride : 0;
+ const int yoff = mode == MATRIX_COLUMN ? x * dstride : 0;
s->setup[plane](radius, c, src, stride, x, width, y, height, bpc);
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)
dstride, stride);
for (x = sizew - radius; x < sizew; x++) {
const int xoff = mode == MATRIX_COLUMN ? (y - slice_start) * bpc : x * bpc;
- const int yoff = mode == MATRIX_COLUMN ? x * stride : 0;
+ const int yoff = mode == MATRIX_COLUMN ? x * dstride : 0;
s->setup[plane](radius, c, src, stride, x, width, y, height, bpc);
s->filter[plane](dst + yoff + xoff, 1, rdiv,