summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}
}