diff options
author | Paul B Mahol <onemda@gmail.com> | 2015-09-17 16:05:15 +0300 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2015-09-17 16:05:15 +0300 |
commit | f825883eeb50a9cc8b668a846abe15979ca0ab9e (patch) | |
tree | 31622635058c4a8948991671a9e4a9fb84eb7e1a | |
parent | 969ce025cc42f6c571001d6c8b97de19e7d9696c (diff) |
avfilter/af_sidechaincompress: do not use floats
Signed-off-by: Paul B Mahol <onemda@gmail.com>
-rw-r--r-- | libavfilter/af_sidechaincompress.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavfilter/af_sidechaincompress.c b/libavfilter/af_sidechaincompress.c index 4bcfebb6ce..40ffca6dc3 100644 --- a/libavfilter/af_sidechaincompress.c +++ b/libavfilter/af_sidechaincompress.c @@ -294,8 +294,8 @@ static int config_output(AVFilterLink *outlink) outlink->channel_layout = ctx->inputs[0]->channel_layout; outlink->channels = ctx->inputs[0]->channels; - s->attack_coeff = FFMIN(1.f, 1.f / (s->attack * outlink->sample_rate / 4000.f)); - s->release_coeff = FFMIN(1.f, 1.f / (s->release * outlink->sample_rate / 4000.f)); + s->attack_coeff = FFMIN(1., 1. / (s->attack * outlink->sample_rate / 4000.)); + s->release_coeff = FFMIN(1., 1. / (s->release * outlink->sample_rate / 4000.)); return 0; } |