[FFmpeg-cvslog] r14979 - trunk/libavcodec/acelp_filters.c
voroshil
subversion
Tue Aug 26 18:47:32 CEST 2008
Author: voroshil
Date: Tue Aug 26 18:47:31 2008
New Revision: 14979
Log:
(cosmetics) Describe for which tests clipping is required.
Modified:
trunk/libavcodec/acelp_filters.c
Modified: trunk/libavcodec/acelp_filters.c
==============================================================================
--- trunk/libavcodec/acelp_filters.c (original)
+++ trunk/libavcodec/acelp_filters.c Tue Aug 26 18:47:31 2008
@@ -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];
More information about the ffmpeg-cvslog
mailing list