shithub: aacenc

Download patch

ref: f17195a936b09ff10af88b7c69abb07d66f01591
parent: 5ea3d7fe0bd1c66f7736d76b48944f99c306a1b7
author: Krzysztof Nikiel <knik@users.sourceforge.net>
date: Thu Oct 19 16:38:25 EDT 2017

fixed 2 orders of magnitude bug in blockswitch

--- a/libfaac/blockswitch.c
+++ b/libfaac/blockswitch.c
@@ -221,7 +221,7 @@
   }
 
 #if PRINTSTAT
-  printf("short frames: %.2f %%\n", 100.0*frames.s/frames.tot);
+  printf("short frames: %d/%d (%.2f %%)\n", frames.s, frames.tot, 100.0*frames.s/frames.tot);
 #endif
 }
 
@@ -236,8 +236,8 @@
   unsigned int channel;
 
   // limit switching threshold
-  if (quality < 40)
-      quality = 40;
+  if (quality < 0.4)
+      quality = 0.4;
 
   for (channel = 0; channel < numChannels; channel++)
   {