shithub: aacenc

Download patch

ref: 31a27a38271fdff180f07c621fde650cb31977bd
parent: f17195a936b09ff10af88b7c69abb07d66f01591
author: Krzysztof Nikiel <knik@users.sourceforge.net>
date: Fri Oct 20 08:35:51 EDT 2017

small fix in huffman coding

--- a/libfaac/huff2.c
+++ b/libfaac/huff2.c
@@ -94,10 +94,10 @@
     book = hmap[bnum];
     switch (bnum)
     {
+#ifdef DRM
     case ZERO_HCB:
     case INTENSITY_HCB:
     case INTENSITY_HCB2:
-#ifdef DRM
         for(ofs = 0; ofs < len; ofs += 4)
         {
             coder->s[datacnt].data = 0;
@@ -104,8 +104,8 @@
             coder->s[datacnt++].len = 0;
             coder->num_data_cw[coder->cur_cw++] = 1;
         }
-#endif
         break;
+#endif
     case 1:
     case 2:
         for(ofs = 0; ofs < len; ofs += 4)