shithub: aacenc

Download patch

ref: 5ea3d7fe0bd1c66f7736d76b48944f99c306a1b7
parent: e3e335f13bd2243f0446576cf46dbd1669d38c21
author: Krzysztof Nikiel <knik@users.sourceforge.net>
date: Thu Oct 19 15:39:16 EDT 2017

small DRM fix in huffman coding

--- a/libfaac/huff2.c
+++ b/libfaac/huff2.c
@@ -427,12 +427,12 @@
 
 #ifdef DRM
     vcb11 = 0;
-#endif
-    if (bookmin > ZERO_HCB)
-        huffcode(qs, len, bookmin, coder);
-#ifdef DRM
+    huffcode(qs, len, bookmin, coder);
     if (vcb11)
         bookmin = vcb11;
+#else
+    if (bookmin > ZERO_HCB)
+        huffcode(qs, len, bookmin, coder);
 #endif
     coder->book[coder->bandcnt] = bookmin;