mirror of https://git.ffmpeg.org/ffmpeg.git
lavu/eval: replace pow(10,x) by ff_exp10(x)
Reviewed-by: Ronald S. Bultje <rsbultje@gmail.com> Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
This commit is contained in:
parent
48cd3d233b
commit
0e9fe3e3c9
|
@ -106,7 +106,7 @@ double av_strtod(const char *numstr, char **tail)
|
||||||
if (next!=numstr) {
|
if (next!=numstr) {
|
||||||
if (next[0] == 'd' && next[1] == 'B') {
|
if (next[0] == 'd' && next[1] == 'B') {
|
||||||
/* treat dB as decibels instead of decibytes */
|
/* treat dB as decibels instead of decibytes */
|
||||||
d = pow(10, d / 20);
|
d = ff_exp10(d / 20);
|
||||||
next += 2;
|
next += 2;
|
||||||
} else if (*next >= 'E' && *next <= 'z') {
|
} else if (*next >= 'E' && *next <= 'z') {
|
||||||
int e= si_prefixes[*next - 'E'].exp;
|
int e= si_prefixes[*next - 'E'].exp;
|
||||||
|
|
Loading…
Reference in New Issue