mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avfilter/af_crossfeed: Use ff_exp10()
Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
796807022c
commit
5785e0e9c4
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user