On 2014-04-29 15:22:01 +0200, Anton Khirnov wrote:
> This function is missing at least on MSVC.
> ---
> configure | 1 +
> libavutil/libm.h | 7 +++++++
> 2 files changed, 8 insertions(+)
>
> diff --git a/configure b/configure
> index 30f90eb..764d6a0 100755
> --- a/configure
> +++ b/configure
> @@ -1391,6 +1391,7 @@ MATH_FUNCS="
> exp2
> exp2f
> expf
> + isfinite
> isinf
> isnan
> ldexpf
> diff --git a/libavutil/libm.h b/libavutil/libm.h
> index d6c2cf8..fb4056e 100644
> --- a/libavutil/libm.h
> +++ b/libavutil/libm.h
> @@ -91,6 +91,13 @@ static av_always_inline av_const int isnan(float x)
> }
> #endif /* HAVE_ISNAN */
>
> +#if !HAVE_ISFINITE
> +static av_always_inline av_const int isfinite(float x)
> +{
> + return !(isnan(x) || isinf(x));
> +}
> +#endif /* HAVE_ISFINITE */
> +
> #if !HAVE_LDEXPF
> #undef ldexpf
> #define ldexpf(x, exp) ((float)ldexp(x, exp))
ok
Janne
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel