aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2021-10-23 16:59:38 +0200
committerPaul B Mahol <onemda@gmail.com>2021-10-23 23:38:39 +0200
commita586ce0a21a29503e318479aa965fdb3eb5d98f7 (patch)
tree72c761d2b53a5b8c962448a3a88cf01bd285188e /libavfilter
parent6c45d34e505f7ef93e07db4a616e7b98d1490102 (diff)
downloadffmpeg-a586ce0a21a29503e318479aa965fdb3eb5d98f7.tar.gz
avfilter/vf_dblur: fix artifacts
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 8ea1229629..48c21c81b6 100644
--- a/libavfilter/vf_dblur.c
+++ b/libavfilter/vf_dblur.c
@@ -68,7 +68,7 @@ static int filter_horizontally(AVFilterContext *ctx, int width, int height)
if (s->R3 > 0) {
for (int y = 1; y < height - 1; y++) {
- g = q * f(0, 0) + c * f(0, 0);
+ 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;
g = q * f(y, x) + c * f(y - 1, x);
@@ -84,7 +84,7 @@ static int filter_horizontally(AVFilterContext *ctx, int width, int height)
}
} else {
for (int y = 1; y < height - 1; y++) {
- g = q * f(0, width - 1) + c * f(0, width - 1);
+ 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;
g = q * f(y, x) + c * f(y - 1, x);