[FFmpeg-cvslog] avfilter/vf_epx: stop doing read overflow

Paul B Mahol git at videolan.org
Tue Mar 15 00:00:35 EET 2022


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Mon Mar 14 22:56:28 2022 +0100| [2ba38beb7929f6dd63f8609e15570891fdf5645a] | committer: Paul B Mahol

avfilter/vf_epx: stop doing read overflow

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=2ba38beb7929f6dd63f8609e15570891fdf5645a
---

 libavfilter/vf_epx.c | 4 ++--
 1 file 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;
         }
     }



More information about the ffmpeg-cvslog mailing list