Browse Source

avfilter/af_sidechaincompress: do not use floats

Signed-off-by: Paul B Mahol <onemda@gmail.com>
tags/n3.0
Paul B Mahol 9 years ago
parent
commit
f825883eeb
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      libavfilter/af_sidechaincompress.c

+ 2
- 2
libavfilter/af_sidechaincompress.c View File

@@ -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;
}


Loading…
Cancel
Save