From b81e9d23ac2fc62bd0646aa63442596549e97a78 Mon Sep 17 00:00:00 2001 From: mru Date: Mon, 10 Aug 2009 01:27:27 +0000 Subject: [PATCH] Define INFINITIY and NAN in mathematics.h if missing git-svn-id: file:///var/local/repositories/ffmpeg/trunk@19611 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b --- libavutil/mathematics.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libavutil/mathematics.h b/libavutil/mathematics.h index 782efcca0..cb3591051 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. -- 2.39.2