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
9090 return 0;
9191 }
9292
93−static inline float hermite_interpolation(float x, float x0, float x1,
94− float p0, float p1,
95− float m0, float m1)
93+static inline double hermite_interpolation(double x, double x0, double x1,
94+ double p0, double p1,
95+ double m0, double m1)
9696 {
97− float width = x1 - x0;
98− float t = (x - x0) / width;
99− float t2, t3;
100− float ct0, ct1, ct2, ct3;
97+ double width = x1 - x0;
98+ double t = (x - x0) / width;
99+ double t2, t3;
100+ double ct0, ct1, ct2, ct3;
101101
102102 m0 *= width;
103103 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