Mercurial > mplayer.hg
diff libswscale/swscale.c @ 31128:100a50819c58
Remove PI definition and use M_PI instead.
M_PI is defined by the included file libavutil/mathematics.h.
author | stefano |
---|---|
date | Wed, 19 May 2010 22:49:04 +0000 |
parents | 1f7d0e9e2ebf |
children | 661755507236 |
line wrap: on
line diff
--- a/libswscale/swscale.c Wed May 19 17:58:17 2010 +0000 +++ b/libswscale/swscale.c Wed May 19 22:49:04 2010 +0000 @@ -63,6 +63,7 @@ #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 @@ #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 \