diff options
author | Diego Biurrun <diego@biurrun.de> | 2008-06-24 20:15:31 +0000 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2008-06-24 20:15:31 +0000 |
commit | ae32e509fb376f9a6c91497dd8d71b9f3c63f026 (patch) | |
tree | 8d8e4eb11fee0ccc1503bc1a26e8ef12240e754a /libavcodec/dct-test.c | |
parent | cf2baeb3382283d41eac7886ea831f52262971ba (diff) | |
download | ffmpeg-ae32e509fb376f9a6c91497dd8d71b9f3c63f026.tar.gz |
Replace redundant MAX macro declaration by proper use of FFMAX.
Originally committed as revision 13948 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/dct-test.c')
-rw-r--r-- | libavcodec/dct-test.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/libavcodec/dct-test.c b/libavcodec/dct-test.c index c822c08177..5699d89813 100644 --- a/libavcodec/dct-test.c +++ b/libavcodec/dct-test.c @@ -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 @@ void dct_error(const char *name, int is_idct, } #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++){ |