Commit 2ba38beb authored by Paul B Mahol's avatar Paul B Mahol

avfilter/vf_epx: stop doing read overflow

parent 6f9b4b3e
......@@ -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;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment