Browse Source

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

Makes output exact with smaller number of samples per frame than taps.
tags/n4.4
Paul B Mahol 4 years ago
parent
commit
072835898d
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavfilter/af_earwax.c

+ 1
- 1
libavfilter/af_earwax.c View File

@@ -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);



Loading…
Cancel
Save