[FFmpeg-devel] [PATCH] Define INFINITIY and NAN in mathematics.h if missing
Mans Rullgard
mans
Sun Aug 9 14:11:43 CEST 2009
---
libavutil/mathematics.h | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/libavutil/mathematics.h b/libavutil/mathematics.h
index 782efcc..cb35910 100644
--- a/libavutil/mathematics.h
+++ b/libavutil/mathematics.h
@@ -41,6 +41,12 @@
#ifndef M_SQRT1_2
#define M_SQRT1_2 0.70710678118654752440 /* 1/sqrt(2) */
#endif
+#ifndef NAN
+#define NAN (0.0/0.0)
+#endif
+#ifndef INFINITY
+#define INFINITY (1.0/0.0)
+#endif
enum AVRounding {
AV_ROUND_ZERO = 0, ///< Round toward zero.
--
1.6.4
More information about the ffmpeg-devel
mailing list