X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavfilter%2Ff_ebur128.c;h=c4b30b4926b5d71a475855ee2859d538c9bd9a57;hb=9cf81e573c70c70218c5d0d99063ebf06c012676;hp=b9577c5bd1af1b17fcaa2ff62ff489afaf1b3d61;hpb=f49264a1c5912ee2bc23e7a09ded1024a178cf04;p=ffmpeg diff --git a/libavfilter/f_ebur128.c b/libavfilter/f_ebur128.c index b9577c5bd1a..c4b30b4926b 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))