[FFmpeg-cvslog] Fix compilation with msvc/icl due to missing header and define.

Matt Oliver git at videolan.org
Mon Feb 3 20:08:10 CET 2014


ffmpeg | branch: master | Matt Oliver <protogonoi at gmail.com> | Mon Feb  3 17:46:11 2014 +1100| [3e309c5d185bc0288e4c8cadf97c91c04806b875] | committer: Michael Niedermayer

Fix compilation with msvc/icl due to missing header and define.

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=3e309c5d185bc0288e4c8cadf97c91c04806b875
---

 libavfilter/vf_drawtext.c |    4 +++-
 libavutil/mathematics.h   |    3 +++
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/libavfilter/vf_drawtext.c b/libavfilter/vf_drawtext.c
index c384394..1690b38 100644
--- a/libavfilter/vf_drawtext.c
+++ b/libavfilter/vf_drawtext.c
@@ -26,10 +26,12 @@
  * filter by Gustavo Sverzut Barbieri
  */
 
+#include "config.h"
+#if HAVE_SYS_TIME_H
 #include <sys/time.h>
+#endif
 #include <time.h>
 
-#include "config.h"
 #include "libavutil/avstring.h"
 #include "libavutil/bprint.h"
 #include "libavutil/common.h"
diff --git a/libavutil/mathematics.h b/libavutil/mathematics.h
index a8b1d8e..88739e8 100644
--- a/libavutil/mathematics.h
+++ b/libavutil/mathematics.h
@@ -45,6 +45,9 @@
 #ifndef M_PI
 #define M_PI           3.14159265358979323846  /* pi */
 #endif
+#ifndef M_PI_2
+#define M_PI_2         1.57079632679489661923  /* pi/2 */
+#endif
 #ifndef M_SQRT1_2
 #define M_SQRT1_2      0.70710678118654752440  /* 1/sqrt(2) */
 #endif



More information about the ffmpeg-cvslog mailing list