[SCM] libav/experimental: Define INFINITIY and NAN in mathematics.h if missing
siretart at users.alioth.debian.org
siretart at users.alioth.debian.org
Sun Jun 30 16:49:52 UTC 2013
The following commit has been merged in the experimental branch:
commit bd41c06f185b7ec30396c273cd12b4b95850a323
Author: Måns Rullgård <mans at mansr.com>
Date: Mon Aug 10 01:27:27 2009 +0000
Define INFINITIY and NAN in mathematics.h if missing
Originally committed as revision 19611 to svn://svn.ffmpeg.org/ffmpeg/trunk
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.
--
Libav/FFmpeg packaging
More information about the pkg-multimedia-commits
mailing list