[FFmpeg-devel] [PATCH] Define INFINITIY and NAN in mathematics.h if missing
Måns Rullgård
mans
Mon Aug 10 03:28:10 CEST 2009
Michael Niedermayer <michaelni at gmx.at> writes:
> 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)
Yes, some systems I want to support are missing these. Applied.
--
M?ns Rullg?rd
mans at mansr.com
More information about the ffmpeg-devel
mailing list