[FFmpeg-cvslog] on2avc: Use the integer abs() version
Vittorio Giovara
git at videolan.org
Fri Jun 12 23:11:04 CEST 2015
ffmpeg | branch: master | Vittorio Giovara <vittorio.giovara at gmail.com> | Fri Jun 12 12:32:38 2015 +0100| [2d5176fad1a4556d209cbfb0f681712c7eada4fd] | committer: 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]".
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=2d5176fad1a4556d209cbfb0f681712c7eada4fd
---
libavcodec/on2avc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/on2avc.c b/libavcodec/on2avc.c
index c00339f..287ecfb 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
More information about the ffmpeg-cvslog
mailing list