[FFmpeg-cvslog] avfilter/af_earwax: fix check that was left in previous commit

Paul B Mahol git at videolan.org
Fri Dec 11 00:44:17 EET 2020


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Thu Dec 10 23:39:49 2020 +0100| [072835898d321a6e3eb33e29331bc8d1ad7434a7] | committer: Paul B Mahol

avfilter/af_earwax: fix check that was left in previous commit

Makes output exact with smaller number of samples per frame than taps.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=072835898d321a6e3eb33e29331bc8d1ad7434a7
---

 libavfilter/af_earwax.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavfilter/af_earwax.c b/libavfilter/af_earwax.c
index 921d0a4c04..a4434290a7 100644
--- a/libavfilter/af_earwax.c
+++ b/libavfilter/af_earwax.c
@@ -145,7 +145,7 @@ static void convolve(AVFilterContext *ctx, AVFrame *in,
     dst = scalarproduct(taps, taps + len, s->filter[filter_ch], dst);
 
     // process current input
-    if (2*in->nb_samples >= NUMTAPS ){
+    if (in->nb_samples >= NUMTAPS) {
         endin = src + in->nb_samples - NUMTAPS;
         scalarproduct(src, endin, s->filter[filter_ch], dst);
 



More information about the ffmpeg-cvslog mailing list