From 2ba38beb7929f6dd63f8609e15570891fdf5645a Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Mon, 14 Mar 2022 22:56:28 +0100 Subject: avfilter/vf_epx: stop doing read overflow --- libavfilter/vf_epx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libavfilter') diff --git a/libavfilter/vf_epx.c b/libavfilter/vf_epx.c index 9d79648ac1..d706229ab8 100644 --- a/libavfilter/vf_epx.c +++ b/libavfilter/vf_epx.c @@ -100,7 +100,7 @@ static int epx2_slice(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs) src_line[1] = src_line[2]; src_line[2] = src_line[1]; - if (y < height - 1) + if (y < height - 2) src_line[2] += src_linesize; } } @@ -187,7 +187,7 @@ static int epx3_slice(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs) src_line[1] = src_line[2]; src_line[2] = src_line[1]; - if (y < height - 1) + if (y < height - 2) src_line[2] += src_linesize; } } -- cgit v1.2.3