Mercurial > libavcodec.hg
changeset 7692:3ced4fb23342 libavcodec
Replace cliping in ff_acelp_interpolate() by a check&av_log, this should be the
quickest way to find out if it is needed.
author | michael |
---|---|
date | Mon, 25 Aug 2008 22:51:47 +0000 |
parents | 8313d5901c5c |
children | dc309e45a671 |
files | acelp_filters.c |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/acelp_filters.c Mon Aug 25 16:32:03 2008 +0000 +++ b/acelp_filters.c Mon Aug 25 22:51:47 2008 +0000 @@ -75,7 +75,9 @@ 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; } }