diff options
author | Paul B Mahol <onemda@gmail.com> | 2022-03-14 22:56:28 +0100 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2022-03-14 23:01:08 +0100 |
commit | 2ba38beb7929f6dd63f8609e15570891fdf5645a (patch) | |
tree | 01edc2fad821d638ee5ed88bc196631e23afe437 | |
parent | 6f9b4b3e1500180280e0bc0fee6b9ee62dd2756e (diff) | |
download | ffmpeg-2ba38beb7929f6dd63f8609e15570891fdf5645a.tar.gz |
avfilter/vf_epx: stop doing read overflow
-rw-r--r-- | libavfilter/vf_epx.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; } } |