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

This avoids issues when the FFMIN parameter evaluation has side effects

Reviewed-by: Clément Bœsch <u@pkh.me>
Reviewed-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2014-06-06 16:29:02 +02:00
parent fa8f060b75
commit afce834843
1 changed files with 4 additions and 1 deletions

View File

@ -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