[FFmpeg-devel] [PATCH 2/2] eval: include libavutil/mathematics.h for NAN and M_PI

Mans Rullgard mans
Sun Aug 9 14:12:21 CEST 2009


---
 libavcodec/eval.c |    9 +--------
 1 files changed, 1 insertions(+), 8 deletions(-)

diff --git a/libavcodec/eval.c b/libavcodec/eval.c
index cdbab19..95e9310 100644
--- a/libavcodec/eval.c
+++ b/libavcodec/eval.c
@@ -33,17 +33,10 @@
 #include <string.h>
 #include <math.h>
 
+#include "libavutil/mathematics.h"
 #include "avcodec.h"
 #include "eval.h"
 
-#ifndef NAN
-  #define NAN 0.0/0.0
-#endif
-
-#ifndef M_PI
-#define M_PI 3.14159265358979323846
-#endif
-
 typedef struct Parser{
     int stack_index;
     char *s;
-- 
1.6.4




More information about the ffmpeg-devel mailing list