summaryrefslogtreecommitdiff
path: root/libavcodec/resample2.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2004-08-14 15:18:49 +0000
committerMichael Niedermayer <michaelni@gmx.at>2004-08-14 15:18:49 +0000
commitbb22e8b17523dedb32135d7691086a6add6c9cb7 (patch)
tree57c66674bfc5d7b4957b560dff67e3df7ba26c04 /libavcodec/resample2.c
parent9d53d58ea784a44eee8afb35a324a267157425e5 (diff)
downloadffmpeg-bb22e8b17523dedb32135d7691086a6add6c9cb7.tar.gz
10l (lrintf(a)+b vs. lrintf(a+b))
Originally committed as revision 3391 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/resample2.c')
-rw-r--r--libavcodec/resample2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/resample2.c b/libavcodec/resample2.c
index 7a19715ce4..752da309eb 100644
--- a/libavcodec/resample2.c
+++ b/libavcodec/resample2.c
@@ -104,7 +104,7 @@ void av_build_filter(int16_t *filter, double factor, int tap_count, int phase_co
/* normalize so that an uniform color remains the same */
for(i=0;i<tap_count;i++) {
- v = clip(lrintf(tab[i] * scale / norm) + e, -32768, 32767);
+ v = clip(lrintf(tab[i] * scale / norm + e), -32768, 32767);
filter[ph * tap_count + i] = v;
e += tab[i] * scale / norm - v;
}