aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2023-01-19 12:31:00 +0100
committerPaul B Mahol <onemda@gmail.com>2023-01-19 12:33:55 +0100
commitab8cde6efa84e547ea07a0c47146091a0066c73c (patch)
tree3478dd50695c5b3240f0efc772c4a2509c1350c5 /libavfilter
parent31c15a0880d0f5064d9c84aae23275ee8baddd5c (diff)
downloadffmpeg-ab8cde6efa84e547ea07a0c47146091a0066c73c.tar.gz
avfilter/vf_dblur: also filter last scanline
Diffstat (limited to 'libavfilter')
-rw-r--r--libavfilter/vf_dblur.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavfilter/vf_dblur.c b/libavfilter/vf_dblur.c
index 14f8e2e37f..7dcb873ba8 100644
--- a/libavfilter/vf_dblur.c
+++ b/libavfilter/vf_dblur.c
@@ -67,7 +67,7 @@ static int filter_horizontally(AVFilterContext *ctx, int width, int height)
float g;
if (s->R3 > 0) {
- for (int y = 1; y < height - 1; y++) {
+ for (int y = 1; y < height; y++) {
g = q * f(y, 0) + c * f(y, 0);
for (int x = 0; x < width; x++) {
f(y, x) = b0 * f(y, x) + b1 * f(y - 1, x) + g;
@@ -83,7 +83,7 @@ static int filter_horizontally(AVFilterContext *ctx, int width, int height)
}
}
} else {
- for (int y = 1; y < height - 1; y++) {
+ for (int y = 1; y < height; y++) {
g = q * f(y, width - 1) + c * f(y, width - 1);
for (int x = width - 1; x >= 0; x--) {
f(y, x) = b0 * f(y, x) + b1 * f(y - 1, x) + g;