X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavfilter%2Faf_compand.c;h=b74636409c32b1b6cd174cbcd467218f380e0b2f;hb=03c1129b20642df4e713b21afd5ee4844b1c409d;hp=68b1fae81ede40edce1dba6bd21dceffd98ea028;hpb=7b880464cb31b779259d56123e03cf3903d476e5;p=ffmpeg diff --git a/libavfilter/af_compand.c b/libavfilter/af_compand.c index 68b1fae81ed..b74636409c3 100644 --- a/libavfilter/af_compand.c +++ b/libavfilter/af_compand.c @@ -506,7 +506,7 @@ static int config_output(AVFilterLink *outlink) cp->decay = 1.0 - exp(-1.0 / (sample_rate * cp->decay)); else cp->decay = 1.0; - cp->volume = pow(10.0, s->initial_volume / 20); + cp->volume = ff_exp10(s->initial_volume / 20); } s->delay_samples = s->delay * sample_rate;