projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
122d027
)
(cosmetics) Describe for which tests clipping is required.
author
Vladimir Voroshilov
<voroshil@gmail.com>
Tue, 26 Aug 2008 16:47:31 +0000
(16:47 +0000)
committer
Vladimir Voroshilov
<voroshil@gmail.com>
Tue, 26 Aug 2008 16:47:31 +0000
(16:47 +0000)
Originally committed as revision 14979 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/acelp_filters.c
patch
|
blob
|
history
diff --git
a/libavcodec/acelp_filters.c
b/libavcodec/acelp_filters.c
index
83db0ef
..
59db649
100644
(file)
--- a/
libavcodec/acelp_filters.c
+++ b/
libavcodec/acelp_filters.c
@@
-156,6
+156,8
@@
void ff_acelp_high_pass_filter(
tmp += (hpf_f[1]* -7667LL)>>13;
tmp += 7699 * (in[i] - 2*in[i-1] + in[i-2]);
+ /* With "+0x800" rounding, clipping is needed
+ for ALGTHM and SPEECH tests. */
out[i] = av_clip_int16((tmp + 0x800) >> 12);
hpf_f[1] = hpf_f[0];