mirror of https://git.ffmpeg.org/ffmpeg.git
lavfi/af_compand: replace pow(10,x) by ff_exp10(x)
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
This commit is contained in:
parent
6c360ca8a1
commit
421679dbf7
|
@ -506,7 +506,7 @@ static int config_output(AVFilterLink *outlink)
|
||||||
cp->decay = 1.0 - exp(-1.0 / (sample_rate * cp->decay));
|
cp->decay = 1.0 - exp(-1.0 / (sample_rate * cp->decay));
|
||||||
else
|
else
|
||||||
cp->decay = 1.0;
|
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;
|
s->delay_samples = s->delay * sample_rate;
|
||||||
|
|
Loading…
Reference in New Issue