]> git.sesse.net Git - ffmpeg/blobdiff - libavfilter/af_crossfeed.c
Merge commit 'cef914e08310166112ac09567e66452a7679bfc8'
[ffmpeg] / libavfilter / af_crossfeed.c
index a0af28043260087ce5496241ce6b631d4267e7cd..beee67964ddd98ac81968fb30c0925cd1fe9a154 100644 (file)
@@ -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;