[FFmpeg-cvslog] avfilter/vf_fftdnoiz: improve filtering at edges
Paul B Mahol
git at videolan.org
Sat Oct 22 13:01:17 EEST 2022
ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Sat Oct 22 12:02:16 2022 +0200| [ff3c7086867b78d6bd6c96ddef02886aba381633] | committer: Paul B Mahol
avfilter/vf_fftdnoiz: improve filtering at edges
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=ff3c7086867b78d6bd6c96ddef02886aba381633
---
libavfilter/vf_fftdnoiz.c | 5 +++--
1 file 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;
More information about the ffmpeg-cvslog
mailing list