Commit 2d5176fa authored by Vittorio Giovara's avatar Vittorio Giovara

on2avc: Use the integer abs() version

Fixes clang warning "floating point absolute value function 'fabsf'
when argument is of integer type [-Wabsolute-value]".
parent a7ac1a7b
...@@ -186,7 +186,7 @@ static int on2avc_decode_band_scales(On2AVCContext *c, GetBitContext *gb) ...@@ -186,7 +186,7 @@ static int on2avc_decode_band_scales(On2AVCContext *c, GetBitContext *gb)
static inline float on2avc_scale(int v, float scale) 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 // spectral data is coded completely differently - there are no unsigned codebooks
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment