Commit e8aff57c authored by michaelni's avatar michaelni

undefined M_PI / M_E fix


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@881 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent ecbbf489
...@@ -32,6 +32,10 @@ ...@@ -32,6 +32,10 @@
#define NAN 0 #define NAN 0
#endif #endif
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif
#define STACK_SIZE 100 #define STACK_SIZE 100
typedef struct Parser{ typedef struct Parser{
......
...@@ -26,6 +26,14 @@ ...@@ -26,6 +26,14 @@
#undef NDEBUG // allways check asserts, the speed effect is far too small to disable them #undef NDEBUG // allways check asserts, the speed effect is far too small to disable them
#include <assert.h> #include <assert.h>
#ifndef M_PI
#define M_PI 3.14159265358979323846
#endif
#ifndef M_E
#define M_E 2.718281828
#endif
static int init_pass2(MpegEncContext *s); static int init_pass2(MpegEncContext *s);
static double get_qscale(MpegEncContext *s, RateControlEntry *rce, double rate_factor, int frame_num); static double get_qscale(MpegEncContext *s, RateControlEntry *rce, double rate_factor, int frame_num);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment