[FFmpeg-cvslog] r13948 - trunk/libavcodec/dct-test.c
diego
subversion
Tue Jun 24 22:15:32 CEST 2008
Author: diego
Date: Tue Jun 24 22:15:31 2008
New Revision: 13948
Log:
Replace redundant MAX macro declaration by proper use of FFMAX.
Modified:
trunk/libavcodec/dct-test.c
Modified: trunk/libavcodec/dct-test.c
==============================================================================
--- trunk/libavcodec/dct-test.c (original)
+++ trunk/libavcodec/dct-test.c Tue Jun 24 22:15:31 2008
@@ -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_
}
#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++){
More information about the ffmpeg-cvslog
mailing list