changeset 7270:26818b216bfb libavcodec

Simplify
author vitor
date Sun, 13 Jul 2008 20:41:09 +0000
parents 04ecb6594999
children 8c58eeb20826
files ra288.c
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/ra288.c	Sun Jul 13 20:39:55 2008 +0000
+++ b/ra288.c	Sun Jul 13 20:41:09 2008 +0000
@@ -69,9 +69,7 @@
     for (x=0; x < 5; x++)
         buffer[x] = codetable[cb_coef][x] * sumsum;
 
-    sum = scalar_product_float(buffer, buffer, 5) / 5;
-
-    sum = FFMAX(sum, 1);
+    sum = FFMAX(1, scalar_product_float(buffer, buffer, 5) / 5);
 
     /* shift and store */
     memmove(glob->lhist, glob->lhist - 1, 10 * sizeof(*glob->lhist));