changeset 7130:601509a430f7 libavcodec

Replace redundant MAX macro declaration by proper use of FFMAX.
author diego
date Tue, 24 Jun 2008 20:15:31 +0000
parents 322023e630a6
children 7b8fba44fe9d
files dct-test.c
diffstat 1 files changed, 2 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/dct-test.c	Tue Jun 24 20:01:31 2008 +0000
+++ b/dct-test.c	Tue Jun 24 20:15:31 2008 +0000
@@ -32,6 +32,7 @@
 #include <unistd.h>
 #include <math.h>
 
+#include "libavutil/common.h"
 #include "dsputil.h"
 
 #include "simple_idct.h"
@@ -39,10 +40,6 @@
 #include "faanidct.h"
 #include "i386/idct_xvid.h"
 
-#ifndef MAX
-#define MAX(a, b)  (((a) > (b)) ? (a) : (b))
-#endif
-
 #undef printf
 #undef random
 
@@ -288,7 +285,7 @@
         }
 #endif
     }
-    for(i=0; i<64; i++) sysErrMax= MAX(sysErrMax, FFABS(sysErr[i]));
+    for(i=0; i<64; i++) sysErrMax= FFMAX(sysErrMax, FFABS(sysErr[i]));
 
 #if 1 // dump systematic errors
     for(i=0; i<64; i++){