avfilter/vf_convolution: use already available dstride

Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
Paul B Mahol 2018-05-05 10:59:56 +02:00
parent bcff983dc3
commit 4cd4aa08a6
1 changed files with 1 additions and 1 deletions

View File

@ -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 rdiv = s->rdiv[plane];
const float bias = s->bias[plane]; const float bias = s->bias[plane];
const uint8_t *src = in->data[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; uint8_t *dst = out->data[plane] + dst_pos;
const int *matrix = s->matrix[plane]; const int *matrix = s->matrix[plane];
const uint8_t *c[49]; const uint8_t *c[49];