changeset 2171:3f52c129d00f libavcodec

10l (lrintf(a)+b vs. lrintf(a+b))
author michael
date Sat, 14 Aug 2004 15:18:49 +0000
parents 51da590b31a3
children 2f01eb357e33
files resample2.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/resample2.c	Sat Aug 14 15:08:09 2004 +0000
+++ b/resample2.c	Sat Aug 14 15:18:49 2004 +0000
@@ -104,7 +104,7 @@
 
         /* 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;
         }