Commit afce8348 authored by Michael Niedermayer's avatar Michael Niedermayer

avutil/libm: Replace macro based fminf() by function

This avoids issues when the FFMIN parameter evaluation has side effects
Reviewed-by: 's avatarClément Bœsch <u@pkh.me>
Reviewed-by: 's avatarDerek Buitenhuis <derek.buitenhuis@gmail.com>
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent fa8f060b
......@@ -84,7 +84,10 @@ static av_always_inline float cbrtf(float x)
#if !HAVE_FMINF
#undef fminf
#define fminf(x, y) (FFMIN(x,y))
static av_always_inline av_const float fminf(float x, float y)
{
return FFMIN(x, y);
}
#endif
#if !HAVE_ISINF
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment