mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-02-04 06:08:26 +02:00
avfilter/vf_epx: stop doing read overflow
This commit is contained in:
parent
6f9b4b3e15
commit
2ba38beb79
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user