1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-26 19:01:44 +02:00

lavfi/earwax: clip sample, this is what sox does

Fixes #1884.

Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
Paul B Mahol 2013-04-03 10:52:01 +00:00
parent 6e90d9e206
commit 0ab10f69ef

View File

@ -98,10 +98,10 @@ static inline int16_t *scalarproduct(const int16_t *in, const int16_t *endin, in
int16_t j;
while (in < endin) {
sample = 32;
sample = 0;
for (j = 0; j < NUMTAPS; j++)
sample += in[j] * filt[j];
*out = sample >> 6;
*out = av_clip_int16(sample >> 6);
out++;
in++;
}