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

Makes output exact with smaller number of samples per frame than taps.
This commit is contained in:
Paul B Mahol 2020-12-10 23:39:49 +01:00
parent e0e9c94c2b
commit 072835898d

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