shithub: aacenc

Download patch

ref: 4036f2c85038ef199a4636a6cbc4448f5e914d39
parent: 985311eadee3fd9e5624014cc3ff58917c989d78
author: Krzysztof Nikiel <knik@users.sourceforge.net>
date: Sat Sep 23 15:54:20 EDT 2017

clang compatibility fix

--- a/libfaac/quantize.c
+++ b/libfaac/quantize.c
@@ -86,11 +86,7 @@
     int sb, cnt;
     int start, end;
     // 1.5dB step
-#ifdef __GNUC__
-    static const double sfstep = 20.0 / 1.5 / log(10);
-#else
-    const double sfstep = 20.0 / 1.5 / log(10);
-#endif
+    static const double sfstep = 20.0 / 1.5 / M_LN10;
 
     for (sb = 0; sb < coderInfo->sfbn; sb++)
     {