History

avfilter/af_sidechaincompress: use doubles instead of floats

Paul B Mahol committed 11 years ago

Commit 695ff5d1 parent ddf37881 file · +7 −7Browse files

Unified · Split

libavfilter/af_sidechaincompress.c+7−7
@@ -90,14 +90,14 @@ static av_cold int init(AVFilterContext *ctx) · 89 unmodified lines
90 return 0;90 return 0;
91}91}
92 92
93static inline float hermite_interpolation(float x, float x0, float x1,93static inline double hermite_interpolation(double x, double x0, double x1,
94 float p0, float p1,94 double p0, double p1,
95 float m0, float m1)95 double m0, double m1)
96{96{
97 float width = x1 - x0;97 double width = x1 - x0;
98 float t = (x - x0) / width;98 double t = (x - x0) / width;
99 float t2, t3;99 double t2, t3;
100 float ct0, ct1, ct2, ct3;100 double ct0, ct1, ct2, ct3;
101 101
102 m0 *= width;102 m0 *= width;
103 m1 *= width;103 m1 *= width;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t