eval: include libavutil/mathematics.h for NAN and M_PI
authorMåns Rullgård <mans@mansr.com>
Mon, 10 Aug 2009 01:27:33 +0000 (01:27 +0000)
committerMåns Rullgård <mans@mansr.com>
Mon, 10 Aug 2009 01:27:33 +0000 (01:27 +0000)
Originally committed as revision 19613 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/eval.c

index cdbab19..95e9310 100644 (file)
 #include <string.h>
 #include <math.h>
 
 #include <string.h>
 #include <math.h>
 
+#include "libavutil/mathematics.h"
 #include "avcodec.h"
 #include "eval.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;
 typedef struct Parser{
     int stack_index;
     char *s;