[FFmpeg-devel] [PATCH 3/3] lavfi/xbr: undef PI if defined
Clément Bœsch
u at pkh.me
Sun Mar 26 21:53:59 EEST 2017
This conflict with the DJGPP libc math.h which includes a PI macro (to
M_PI).
We can not make DJGPP posix only to avoid the conflict due to the lack
of posix_memalign.
---
libavfilter/vf_xbr.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/libavfilter/vf_xbr.c b/libavfilter/vf_xbr.c
index 9893e0cc80..d0d51045cc 100644
--- a/libavfilter/vf_xbr.c
+++ b/libavfilter/vf_xbr.c
@@ -37,6 +37,10 @@
#define RED_BLUE_MASK 0x00FF00FF
#define GREEN_MASK 0x0000FF00
+#ifdef PI
+#undef PI
+#endif
+
typedef int (*xbrfunc_t)(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs);
typedef struct {
--
2.12.1
More information about the ffmpeg-devel
mailing list