OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a7ac1a7
)
on2avc: Use the integer abs() version
author
Vittorio Giovara
<vittorio.giovara@gmail.com>
Fri, 12 Jun 2015 11:32:38 +0000
(12:32 +0100)
committer
Vittorio Giovara
<vittorio.giovara@gmail.com>
Fri, 12 Jun 2015 16:02:49 +0000
(17:02 +0100)
Fixes clang warning "floating point absolute value function 'fabsf'
when argument is of integer type [-Wabsolute-value]".
libavcodec/on2avc.c
patch
|
blob
|
history
diff --git
a/libavcodec/on2avc.c
b/libavcodec/on2avc.c
index
c00339f
..
287ecfb
100644
(file)
--- 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