diff options
author | stefano <stefano@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2010-05-19 22:49:04 +0000 |
---|---|---|
committer | stefano <stefano@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2010-05-19 22:49:04 +0000 |
commit | 3c88e5fdc37dba4b95c24acb69b81939ddd4297e (patch) | |
tree | e68f2f9eefb9119c70adcea0bff16e48a3c7801a /libswscale | |
parent | 7be96c379227b2a24cf8874e3f037263000d6e58 (diff) |
Remove PI definition and use M_PI instead.
M_PI is defined by the included file libavutil/mathematics.h.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31185 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libswscale')
-rw-r--r-- | libswscale/swscale.c | 7 | ||||
-rw-r--r-- | libswscale/utils.c | 2 |
2 files changed, 2 insertions, 7 deletions
diff --git a/libswscale/swscale.c b/libswscale/swscale.c index 2b02dd3dfd..8868f5b1be 100644 --- a/libswscale/swscale.c +++ b/libswscale/swscale.c @@ -63,6 +63,7 @@ untested special converters #include "libavutil/intreadwrite.h" #include "libavutil/x86_cpu.h" #include "libavutil/avutil.h" +#include "libavutil/mathematics.h" #include "libavutil/bswap.h" #include "libavutil/pixdesc.h" @@ -77,12 +78,6 @@ untested special converters #define FAST_BGR2YV12 // use 7 bit coefficients instead of 15 bit -#ifdef M_PI -#define PI M_PI -#else -#define PI 3.14159265358979323846 -#endif - #define isPacked(x) ( \ (x)==PIX_FMT_PAL8 \ || (x)==PIX_FMT_YUYV422 \ diff --git a/libswscale/utils.c b/libswscale/utils.c index d7a6ea25b0..5dad43bdd9 100644 --- a/libswscale/utils.c +++ b/libswscale/utils.c @@ -287,7 +287,7 @@ static int initFilter(int16_t **outFilter, int16_t **filterPos, int *outFilterSi } /* else if (flags & SWS_X) { double p= param ? param*0.01 : 0.3; - coeff = d ? sin(d*PI)/(d*PI) : 1.0; + coeff = d ? sin(d*M_PI)/(d*M_PI) : 1.0; coeff*= pow(2.0, - p*d*d); }*/ else if (flags & SWS_X) { |