changeset 7267:4a4a8563de98 libavcodec

Simplify: use FFMAX
author vitor
date Sun, 13 Jul 2008 20:36:32 +0000
parents 451bc2b25bcb
children 7e51fc7805ac
files ra288.c
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ra288.c	Sun Jul 13 20:03:57 2008 +0000
+++ b/ra288.c	Sun Jul 13 20:36:32 2008 +0000
@@ -74,8 +74,7 @@
 
     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));