diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2008-08-25 22:51:47 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2008-08-25 22:51:47 +0000 |
commit | 2ad0d96a24879b96153a3fbbc1707372baa2615e (patch) | |
tree | b8e1745af0b8b6707bcd50045427b386538a9b30 /libavcodec | |
parent | cbccf2058e309dcbb40ac37943656e7c0780a001 (diff) | |
download | ffmpeg-2ad0d96a24879b96153a3fbbc1707372baa2615e.tar.gz |
Replace cliping in ff_acelp_interpolate() by a check&av_log, this should be the
quickest way to find out if it is needed.
Originally committed as revision 14970 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/acelp_filters.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libavcodec/acelp_filters.c b/libavcodec/acelp_filters.c index b5a6660066..581da306f3 100644 --- a/libavcodec/acelp_filters.c +++ b/libavcodec/acelp_filters.c @@ -75,7 +75,9 @@ void ff_acelp_interpolate( i++; v += in[n - i] * filter_coeffs[idx - frac_pos]; } - out[n] = av_clip_int16(v >> 15); + if(av_clip_int16(v>>15) != (v>>15)) + av_log(NULL, AV_LOG_WARNING, "overflow that would need cliping in ff_acelp_interpolate()\n"); + out[n] = v >> 15; } } |