ref: 1dfa7fe4c00bcecbdd73964707084ec32d490a13
parent: 648c55c5a0a049e557ac6d40ffe56ef49d4682a7
author: Krzysztof Nikiel <knik@users.sourceforge.net>
date: Wed Sep 6 06:40:42 EDT 2017
avoid clang error (initializer element is not a compile-time constant)
--- a/libfaac/quantize.c
+++ b/libfaac/quantize.c
@@ -86,7 +86,11 @@
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
for (sb = 0; sb < coderInfo->sfbn; sb++)
{