[FFmpeg-cvslog] avfilter/af_sidechaincompress: do not use floats

Paul B Mahol git at videolan.org
Thu Sep 17 15:07:37 CEST 2015


ffmpeg | branch: master | Paul B Mahol <onemda at gmail.com> | Thu Sep 17 13:05:15 2015 +0000| [f825883eeb50a9cc8b668a846abe15979ca0ab9e] | committer: Paul B Mahol

avfilter/af_sidechaincompress: do not use floats

Signed-off-by: Paul B Mahol <onemda at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f825883eeb50a9cc8b668a846abe15979ca0ab9e
---

 libavfilter/af_sidechaincompress.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavfilter/af_sidechaincompress.c b/libavfilter/af_sidechaincompress.c
index 4bcfebb..40ffca6 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;
 }



More information about the ffmpeg-cvslog mailing list