shithub: aacenc

Download patch

ref: d93bdfa125e88245207629344876087ab3d4da14
parent: f8fb982129460df2d5ae12ac034e22429d3f01f4
author: knik <knik>
date: Sun Apr 13 04:38:15 EDT 2003

noise threshold changed to match new quantizer
block type switch fix

--- a/libfaac/psychkni.c
+++ b/libfaac/psychkni.c
@@ -16,7 +16,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  *
- * $Id: psychkni.c,v 1.7 2003/03/27 17:09:29 knik Exp $
+ * $Id: psychkni.c,v 1.8 2003/04/13 08:38:15 knik Exp $
  */
 #include <stdio.h>
 #include <stdlib.h>
@@ -78,8 +78,8 @@
   double totchg;
   int lastband;
   psydata_t *psydata = psyInfo->data;
-  static const double longthr = 0.37;
-  const double shortthr = longthr * 0.3;
+  static const double longthr = 1.0;
+  const double shortthr = longthr * 0.7;
   static const int firstband = 1;
 
 
@@ -105,7 +105,7 @@
   for (j = 0; j < 8; j++)
   {
     int l = 0;
-    for (b = firstband; b < num_cb_short; b++)
+    for (b = 0; b < num_cb_short; b++)
     {
       int last = l + cb_width_short[b];
       double e = 0;