avfilter/vf_epx: stop doing read overflow

release/5.1
Paul B Mahol 3 years ago
parent 6f9b4b3e15
commit 2ba38beb79
  1. 4
      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[1] = src_line[2];
src_line[2] = src_line[1]; src_line[2] = src_line[1];
if (y < height - 1) if (y < height - 2)
src_line[2] += src_linesize; 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[1] = src_line[2];
src_line[2] = src_line[1]; src_line[2] = src_line[1];
if (y < height - 1) if (y < height - 2)
src_line[2] += src_linesize; src_line[2] += src_linesize;
} }
} }

Loading…
Cancel
Save