shithub: aacenc

Download patch

ref: 0560c45238da7aa143dad49401f8120c96f2181a
parent: d1b45723d847f61b0cbdfb85c92446edc9b1fb3f
author: Krzysztof Nikiel <knik@users.sourceforge.net>
date: Fri Oct 20 15:20:25 EDT 2017

disable mid/side in the lowest band

--- a/libfaac/midside.c
+++ b/libfaac/midside.c
@@ -40,6 +40,9 @@
         double enrgs, enrgd, enrgl, enrgr;
         double maxs, maxd, maxl, maxr;
 
+	if (sfb < 1)
+            goto setms;
+
         start = coder->sfb_offset[sfb];
         end = coder->sfb_offset[sfb + 1];
 
@@ -108,6 +111,7 @@
             }
         }
 
+    setms:
         channel->msInfo.ms_used[*mscnt] = ms;
         (*mscnt)++;
     }