History

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

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

Paul B Mahol committed 5 years ago

Commit 07283581 parent e0e9c941 file · +1 −1Browse files

Showing the changes to libavfilter (1 of 1 file). Show all

Unified · Split

libavfilter/af_earwax.c+1−1
@@ -145,7 +145,7 @@ static void convolve(AVFilterContext *ctx, AVFrame *in, · 144 unmodified lines
145145 dst = scalarproduct(taps, taps + len, s->filter[filter_ch], dst);
146146
147147 // process current input
148− if (2*in->nb_samples >= NUMTAPS ){
148+ if (in->nb_samples >= NUMTAPS) {
149149 endin = src + in->nb_samples - NUMTAPS;
150150 scalarproduct(src, endin, s->filter[filter_ch], dst);
151151

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t