aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2018-05-05 10:59:56 +0200
committerPaul B Mahol <onemda@gmail.com>2018-05-05 11:01:02 +0200
commit4cd4aa08a689049efe028cd56db12f2aa552ede6 (patch)
tree1a13b86e24f873f3d4f304d993a78ef4d0c9db56
parentbcff983dc340e76518935111146c0e1daf4cb37b (diff)
downloadffmpeg-4cd4aa08a689049efe028cd56db12f2aa552ede6.tar.gz
avfilter/vf_convolution: use already available dstride
Signed-off-by: Paul B Mahol <onemda@gmail.com>
-rw-r--r--libavfilter/vf_convolution.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vf_convolution.c b/libavfilter/vf_convolution.c
index e8fc6553d2..96d40b40f1 100644
--- a/libavfilter/vf_convolution.c
+++ b/libavfilter/vf_convolution.c
@@ -541,7 +541,7 @@ static int filter_slice(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
const float rdiv = s->rdiv[plane];
const float bias = s->bias[plane];
const uint8_t *src = in->data[plane];
- const int dst_pos = slice_start * (mode == MATRIX_COLUMN ? bpc : out->linesize[plane]);
+ const int dst_pos = slice_start * (mode == MATRIX_COLUMN ? bpc : dstride);
uint8_t *dst = out->data[plane] + dst_pos;
const int *matrix = s->matrix[plane];
const uint8_t *c[49];