Browse Source

(cosmetics) Describe for which tests clipping is required.

Originally committed as revision 14979 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Vladimir Voroshilov 17 years ago
parent
commit
f5e177f852
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      libavcodec/acelp_filters.c

+ 2
- 0
libavcodec/acelp_filters.c View File

@@ -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];


Loading…
Cancel
Save