mirror of https://git.ffmpeg.org/ffmpeg.git
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:
parent
e0e9c94c2b
commit
072835898d
|
@ -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…
Reference in New Issue