shithub: aacenc

Download patch

ref: f7d376ae84e3063ccb963482731d391bb9bcff7a
parent: 78d0f91c2d524c289765220888da44deb67eefc4
author: Fabian Greffrath <fabian@greffrath.com>
date: Mon Sep 30 09:02:08 EDT 2019

quantize.c: fix logic error in compiler detection

The code is supposed to be compiled with GCC >= 4.6 but not clang.

--- a/libfaac/quantize.c
+++ b/libfaac/quantize.c
@@ -153,7 +153,7 @@
                   )
 {
     int sb, cnt;
-#if !defined(__clang__) && (!defined(__GNUC__) || GCC_VERSION >= 40600)
+#if !defined(__clang__) && defined(__GNUC__) && (GCC_VERSION >= 40600)
     /* 2^0.25 (1.50515 dB) step from AAC specs */
     static const double sfstep = 1.0 / log10(sqrt(sqrt(2.0)));
 #else