[FFmpeg-cvslog] r14356 - trunk/libavcodec/ra288.c

vitor subversion
Thu Jul 24 05:22:19 CEST 2008


Author: vitor
Date: Thu Jul 24 05:22:19 2008
New Revision: 14356

Log:
Simplify co(): write constant in a more readable way

Modified:
   trunk/libavcodec/ra288.c

Modified: trunk/libavcodec/ra288.c
==============================================================================
--- trunk/libavcodec/ra288.c	(original)
+++ trunk/libavcodec/ra288.c	Thu Jul 24 05:22:19 2008
@@ -158,7 +158,7 @@ static void co(int n, int i, int j, cons
         st2[x] = st2[x] * 0.5625 + buffer1[x];
         out[x] = st2[x]          + buffer2[x];
     }
-    *out *= 1.00390625; /* to prevent clipping */
+    *out *= 257./256.; /* to prevent clipping */
 }
 
 static void update(Real288_internal *glob)




More information about the ffmpeg-cvslog mailing list