From 2d5176fad1a4556d209cbfb0f681712c7eada4fd Mon Sep 17 00:00:00 2001 From: Vittorio Giovara Date: Fri, 12 Jun 2015 12:32:38 +0100 Subject: [PATCH] on2avc: Use the integer abs() version Fixes clang warning "floating point absolute value function 'fabsf' when argument is of integer type [-Wabsolute-value]". --- libavcodec/on2avc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/on2avc.c b/libavcodec/on2avc.c index c00339f7b0..287ecfbd89 100644 --- a/libavcodec/on2avc.c +++ b/libavcodec/on2avc.c @@ -186,7 +186,7 @@ static int on2avc_decode_band_scales(On2AVCContext *c, GetBitContext *gb) static inline float on2avc_scale(int v, float scale) { - return v * sqrtf(fabsf(v)) * scale; + return v * sqrtf(abs(v)) * scale; } // spectral data is coded completely differently - there are no unsigned codebooks -- 2.11.0