diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2018-12-31 21:08:06 +0100 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2019-01-01 21:11:47 +0100 |
commit | 5785e0e9c401e3bb2c5af5096209ba560c9a2c0e (patch) | |
tree | c2aba617b41e9938c4f44bb30bc26ad12db22d92 /libavfilter/af_crossfeed.c | |
parent | 796807022c939dc593aa2a3c0d1a4ad2b3770736 (diff) | |
download | ffmpeg-5785e0e9c401e3bb2c5af5096209ba560c9a2c0e.tar.gz |
avfilter/af_crossfeed: Use ff_exp10()
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavfilter/af_crossfeed.c')
-rw-r--r-- | libavfilter/af_crossfeed.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavfilter/af_crossfeed.c b/libavfilter/af_crossfeed.c index a0af280432..beee67964d 100644 --- a/libavfilter/af_crossfeed.c +++ b/libavfilter/af_crossfeed.c @@ -17,6 +17,7 @@ */ #include "libavutil/channel_layout.h" +#include "libavutil/ffmath.h" #include "libavutil/opt.h" #include "avfilter.h" #include "audio.h" @@ -57,7 +58,7 @@ static int config_input(AVFilterLink *inlink) { AVFilterContext *ctx = inlink->dst; CrossfeedContext *s = ctx->priv; - double A = exp(s->strength * -30 / 40 * log(10.)); + double A = ff_exp10(s->strength * -30 / 40); double w0 = 2 * M_PI * (1. - s->range) * 2100 / inlink->sample_rate; double alpha; |