This website works better with JavaScript.
Home
Help
Sign In
falkTX
/
FFmpeg
mirror of
https://github.com/falkTX/FFmpeg.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
338
Wiki
Activity
Browse Source
lavfi/earwax: clip sample, this is what sox does
Fixes
#1884
. Signed-off-by: Paul B Mahol <onemda@gmail.com>
tags/n2.0
Paul B Mahol
12 years ago
parent
6e90d9e206
commit
0ab10f69ef
1 changed files
with
2 additions
and
2 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-2
libavfilter/af_earwax.c
+ 2
- 2
libavfilter/af_earwax.c
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++;
}
Write
Preview
Loading…
Cancel
Save