shithub: aacenc

Download patch

ref: 0fe043c023d41385888abafdce1000025992ffb8
parent: aa1eaee4022d8cc79b9d83bd3aae64769b433cc9
author: Krzysztof Nikiel <knik@users.sourceforge.net>
date: Fri Nov 3 07:44:39 EDT 2017

clang compilation fix

--- a/libfaac/stereo.c
+++ b/libfaac/stereo.c
@@ -260,7 +260,7 @@
     static const double thrmax = 1.25 /* ~2dB */ - 1.0;
     static const double sidemin = 0.1; /* -20dB */
     static const double sidemax = 0.3; /* ~-10.5dB */
-    static const double isthrmax = sqrt(2) - 1.0;
+    static const double isthrmax = M_SQRT2 - 1.0;
     double thrmid, thrside;
     double isthr;