[FFmpeg-cvslog] r19611 - trunk/libavutil/mathematics.h

mru subversion
Mon Aug 10 03:27:27 CEST 2009


Author: mru
Date: Mon Aug 10 03:27:27 2009
New Revision: 19611

Log:
Define INFINITIY and NAN in mathematics.h if missing

Modified:
   trunk/libavutil/mathematics.h

Modified: trunk/libavutil/mathematics.h
==============================================================================
--- trunk/libavutil/mathematics.h	Sun Aug  9 12:42:38 2009	(r19610)
+++ trunk/libavutil/mathematics.h	Mon Aug 10 03:27:27 2009	(r19611)
@@ -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.



More information about the ffmpeg-cvslog mailing list