aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2022-03-14 22:56:28 +0100
committerPaul B Mahol <onemda@gmail.com>2022-03-14 23:01:08 +0100
commit2ba38beb7929f6dd63f8609e15570891fdf5645a (patch)
tree01edc2fad821d638ee5ed88bc196631e23afe437
parent6f9b4b3e1500180280e0bc0fee6b9ee62dd2756e (diff)
downloadffmpeg-2ba38beb7929f6dd63f8609e15570891fdf5645a.tar.gz
avfilter/vf_epx: stop doing read overflow
-rw-r--r--libavfilter/vf_epx.c4
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;
}
}