[FFmpeg-cvslog] avfilter/vf_convolution: use already available dstride
Paul B Mahol
git at videolan.org
Sat May 5 13:27:06 EEST 2018
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Sat May 5 10:59:56 2018 +0200| [4cd4aa08a689049efe028cd56db12f2aa552ede6] | committer: Paul B Mahol
avfilter/vf_convolution: use already available dstride
Signed-off-by: Paul B Mahol <onemda at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=4cd4aa08a689049efe028cd56db12f2aa552ede6
---
libavfilter/vf_convolution.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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];
More information about the ffmpeg-cvslog
mailing list