mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-24 03:39:45 +00:00
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:
parent
fa8f060b75
commit
afce834843
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user