changeset 7696:76cf62255b28 libavcodec

(cosmetics) Describe for which tests clipping is required.
author voroshil
date Tue, 26 Aug 2008 16:47:31 +0000
parents 073847371624
children 30d7b2e3a381
files acelp_filters.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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];