shithub: aacenc

Download patch

ref: 7e7c82ee0f6c160270b48f3370a1a3b5cdb9fa28
parent: 35ee672ee05d56df3b360675a64cec143bc476f3
author: Krzysztof Nikiel <knik@users.sourceforge.net>
date: Sat Oct 14 13:18:56 EDT 2017

added block switching threshold limit

--- a/libfaac/blockswitch.c
+++ b/libfaac/blockswitch.c
@@ -235,6 +235,10 @@
 {
   unsigned int channel;
 
+  // limit switching threshold
+  if (quality < 40)
+      quality = 40;
+
   for (channel = 0; channel < numChannels; channel++)
   {
     if (channelInfo[channel].present)