diff options
author | Ganesh Ajjanagadde <gajjanagadde@gmail.com> | 2015-12-23 21:04:04 +0300 |
---|---|---|
committer | Ganesh Ajjanagadde <gajjanagadde@gmail.com> | 2015-12-25 21:48:18 +0300 |
commit | e0024b9e5f5b174c542c90bc3006d36854d14af6 (patch) | |
tree | bf9f5926c6609b2ffeb0247426482fee1c998f97 /libavfilter/f_ebur128.c | |
parent | 86aa2e9f768b267ef366df7baedacc0edb0c78ae (diff) |
lavfi/f_ebur128: replace pow(10,x) by ff_exp10(x)
Reviewed-by: Clément Bœsch <u@pkh.me>
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
Diffstat (limited to 'libavfilter/f_ebur128.c')
-rw-r--r-- | libavfilter/f_ebur128.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/f_ebur128.c b/libavfilter/f_ebur128.c index b9577c5bd1..c4b30b4926 100644 --- a/libavfilter/f_ebur128.c +++ b/libavfilter/f_ebur128.c @@ -435,7 +435,7 @@ static int config_audio_output(AVFilterLink *outlink) return 0; } -#define ENERGY(loudness) (pow(10, ((loudness) + 0.691) / 10.)) +#define ENERGY(loudness) (ff_exp10(((loudness) + 0.691) / 10.)) #define LOUDNESS(energy) (-0.691 + 10 * log10(energy)) #define DBFS(energy) (20 * log10(energy)) |