[FFmpeg-devel] [PATCH] Define INFINITIY and NAN in mathematics.h if missing
Michael Niedermayer
michaelni
Mon Aug 10 02:43:45 CEST 2009
On Sun, Aug 09, 2009 at 01:11:43PM +0100, Mans Rullgard wrote:
> ---
> 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
ok if it does fix a real issue (compile failure or so)
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
It is dangerous to be right in matters on which the established authorities
are wrong. -- Voltaire
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090810/545e5f4c/attachment.pgp>
More information about the ffmpeg-devel
mailing list