aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/vf_fftdnoiz.c
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2022-10-22 12:02:16 +0200
committerPaul B Mahol <onemda@gmail.com>2022-10-22 12:04:43 +0200
commitff3c7086867b78d6bd6c96ddef02886aba381633 (patch)
tree1e6e8cadee92ab79e116a63db6b347a46b86f9c2 /libavfilter/vf_fftdnoiz.c
parentff3c4705f61dd03bf9dd0ae5d9f6c83075b25814 (diff)
downloadffmpeg-ff3c7086867b78d6bd6c96ddef02886aba381633.tar.gz
avfilter/vf_fftdnoiz: improve filtering at edges
Diffstat (limited to 'libavfilter/vf_fftdnoiz.c')
-rw-r--r--libavfilter/vf_fftdnoiz.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libavfilter/vf_fftdnoiz.c b/libavfilter/vf_fftdnoiz.c
index c9208bf1aa..e74f40b4cb 100644
--- a/libavfilter/vf_fftdnoiz.c
+++ b/libavfilter/vf_fftdnoiz.c
@@ -308,6 +308,7 @@ static void import_block(FFTdnoizContext *s,
dst_out += data_linesize;
}
+ dst = dst_out;
for (int i = rh; i < block; i++) {
for (int j = 0; j < block; j++) {
dst[j].re = ddst[j].re;
@@ -347,8 +348,8 @@ static void export_block(FFTdnoizContext *s,
AVComplexFloat *hdata = p->hdata[jobnr];
AVComplexFloat *hdata_out = p->hdata_out[jobnr];
AVComplexFloat *vdata_out = p->vdata_out[jobnr];
- const int rw = FFMIN(size, width - x * size + hoverlap);
- const int rh = FFMIN(size, height - y * size + hoverlap);
+ const int rw = FFMIN(size, width - x * size);
+ const int rh = FFMIN(size, height - y * size);
AVComplexFloat *hdst, *vdst = vdata_out, *hdst_out = hdata_out;
float *bsrc = buffer;