projects
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
cbccf20
)
Replace cliping in ff_acelp_interpolate() by a check&av_log, this should be the
author
Michael Niedermayer
<michaelni@gmx.at>
Mon, 25 Aug 2008 22:51:47 +0000
(22:51 +0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Mon, 25 Aug 2008 22:51:47 +0000
(22:51 +0000)
quickest way to find out if it is needed.
Originally committed as revision 14970 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/acelp_filters.c
patch
|
blob
|
history
diff --git
a/libavcodec/acelp_filters.c
b/libavcodec/acelp_filters.c
index
b5a6660
..
581da30
100644
(file)
--- 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;
}
}