aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2020-12-10 23:39:49 +0100
committerPaul B Mahol <onemda@gmail.com>2020-12-10 23:43:49 +0100
commit072835898d321a6e3eb33e29331bc8d1ad7434a7 (patch)
tree4418c5f9354c6176c8913dde2cc07541507feff8
parente0e9c94c2b51a3512b9a035a2dd9a5a399c68702 (diff)
downloadffmpeg-072835898d321a6e3eb33e29331bc8d1ad7434a7.tar.gz
avfilter/af_earwax: fix check that was left in previous commit
Makes output exact with smaller number of samples per frame than taps.
-rw-r--r--libavfilter/af_earwax.c2
1 files changed, 1 insertions, 1 deletions
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);