# HG changeset patch # User voroshil # Date 1219769251 0 # Node ID 76cf62255b284bda8a96467f79ca19eec9b01044 # Parent 073847371624797235bf522c448fe6ae1a3e24a8 (cosmetics) Describe for which tests clipping is required. diff -r 073847371624 -r 76cf62255b28 acelp_filters.c --- a/acelp_filters.c Tue Aug 26 16:41:23 2008 +0000 +++ b/acelp_filters.c Tue Aug 26 16:47:31 2008 +0000 @@ -156,6 +156,8 @@ 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];