diff options
author | Måns Rullgård <mans@mansr.com> | 2009-08-10 01:27:27 +0000 |
---|---|---|
committer | Måns Rullgård <mans@mansr.com> | 2009-08-10 01:27:27 +0000 |
commit | bd41c06f185b7ec30396c273cd12b4b95850a323 (patch) | |
tree | 64e680c7077b741b869840a2c0ec0fd7c132a636 /libavutil | |
parent | 184410e60bde60a878bb8f95eef07541b0140037 (diff) | |
download | ffmpeg-bd41c06f185b7ec30396c273cd12b4b95850a323.tar.gz |
Define INFINITIY and NAN in mathematics.h if missing
Originally committed as revision 19611 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavutil')
-rw-r--r-- | libavutil/mathematics.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libavutil/mathematics.h b/libavutil/mathematics.h index 782efcca0f..cb3591051a 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. |