diff options
author | Paul B Mahol <onemda@gmail.com> | 2018-05-05 10:59:56 +0200 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2018-05-05 11:01:02 +0200 |
commit | 4cd4aa08a689049efe028cd56db12f2aa552ede6 (patch) | |
tree | 1a13b86e24f873f3d4f304d993a78ef4d0c9db56 | |
parent | bcff983dc340e76518935111146c0e1daf4cb37b (diff) | |
download | ffmpeg-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.c | 2 |
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]; |