avutil/libm: use FFMIN instead of fmin()
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 6 Jun 2014 14:02:53 +0000 (16:02 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 6 Jun 2014 14:02:53 +0000 (16:02 +0200)
MSVC apparently doesnt support fmin() either

Suggested/Found-by: ubitux, Daemon404, nevcairiel
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavutil/libm.h

index 8f27fa3..eacb3cc 100644 (file)
@@ -84,7 +84,7 @@ static av_always_inline float cbrtf(float x)
 
 #if !HAVE_FMINF
 #undef fminf
-#define fminf(x, y) ((float)fmin(x,y))
+#define fminf(x, y) (FFMIN(x,y))
 #endif
 
 #if !HAVE_ISINF