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

vitor subversion
Sun Jul 13 22:36:33 CEST 2008


Author: vitor
Date: Sun Jul 13 22:36:32 2008
New Revision: 14215

Log:
Simplify: use FFMAX

Modified:
   trunk/libavcodec/ra288.c

Modified: trunk/libavcodec/ra288.c
==============================================================================
--- trunk/libavcodec/ra288.c	(original)
+++ trunk/libavcodec/ra288.c	Sun Jul 13 22:36:32 2008
@@ -74,8 +74,7 @@ static void decode(Real288_internal *glo
 
     sum = scalar_product_float(buffer, buffer, 5) / 5;
 
-    if (sum < 1)
-        sum = 1;
+    sum = FFMAX(sum, 1);
 
     /* shift and store */
     memmove(glob->lhist, glob->lhist - 1, 10 * sizeof(*glob->lhist));




More information about the ffmpeg-cvslog mailing list