Browse code

(cosmetics) Describe for which tests clipping is required.

Originally committed as revision 14979 to svn://svn.ffmpeg.org/ffmpeg/trunk

Vladimir Voroshilov authored on 2008/08/27 01:47:31
Showing 1 changed files
... ...
@@ -156,6 +156,8 @@ void ff_acelp_high_pass_filter(
156 156
         tmp += (hpf_f[1]* -7667LL)>>13;
157 157
         tmp += 7699 * (in[i] - 2*in[i-1] + in[i-2]);
158 158
 
159
+        /* With "+0x800" rounding, clipping is needed
160
+           for ALGTHM and SPEECH tests. */
159 161
         out[i] = av_clip_int16((tmp + 0x800) >> 12);
160 162
 
161 163
         hpf_f[1] = hpf_f[0];