diff options
author | Paul B Mahol <onemda@gmail.com> | 2015-09-16 15:05:16 +0300 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2015-09-17 12:30:50 +0300 |
commit | 695ff5dc6d9ed88a61a544146a6358ecc5259e6c (patch) | |
tree | 24e9a2c7219e032f6c4680241b49568b6612c2fe | |
parent | ddf378895f6ff9ee1a5c5420acf5b62e078ab68f (diff) |
avfilter/af_sidechaincompress: use doubles instead of floats
Signed-off-by: Paul B Mahol <onemda@gmail.com>
-rw-r--r-- | libavfilter/af_sidechaincompress.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/libavfilter/af_sidechaincompress.c b/libavfilter/af_sidechaincompress.c index e45fd720d7..4bcfebb6ce 100644 --- a/libavfilter/af_sidechaincompress.c +++ b/libavfilter/af_sidechaincompress.c @@ -90,14 +90,14 @@ static av_cold int init(AVFilterContext *ctx) return 0; } -static inline float hermite_interpolation(float x, float x0, float x1, - float p0, float p1, - float m0, float m1) +static inline double hermite_interpolation(double x, double x0, double x1, + double p0, double p1, + double m0, double m1) { - float width = x1 - x0; - float t = (x - x0) / width; - float t2, t3; - float ct0, ct1, ct2, ct3; + double width = x1 - x0; + double t = (x - x0) / width; + double t2, t3; + double ct0, ct1, ct2, ct3; m0 *= width; m1 *= width; |