diff options
author | Vittorio Giovara <vittorio.giovara@gmail.com> | 2015-06-12 12:32:38 +0100 |
---|---|---|
committer | Vittorio Giovara <vittorio.giovara@gmail.com> | 2015-06-12 17:02:49 +0100 |
commit | 2d5176fad1a4556d209cbfb0f681712c7eada4fd (patch) | |
tree | a5f54a6370f3a7c9b171a3ca509496ab09810a08 /libavcodec/on2avc.c | |
parent | a7ac1a7b94447f33ae95be4d6d186e2775977f91 (diff) | |
download | ffmpeg-2d5176fad1a4556d209cbfb0f681712c7eada4fd.tar.gz |
on2avc: Use the integer abs() version
Fixes clang warning "floating point absolute value function 'fabsf'
when argument is of integer type [-Wabsolute-value]".
Diffstat (limited to 'libavcodec/on2avc.c')
-rw-r--r-- | libavcodec/on2avc.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 |