shithub: aacenc

Download patch

ref: 296859b23f5e255ab60ea60f59dac5860d2f7c04
parent: 86551c041655e0e31b1c8e40efdcf58db76de981
author: knik <knik>
date: Mon Aug 18 12:22:10 EDT 2003

fixed a nasty sample shift causing the block switch to fail in some cases

--- 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.11 2003/08/07 08:17:00 knik Exp $
+ * $Id: psychkni.c,v 1.12 2003/08/18 16:22:10 knik Exp $
  */
 #include <stdio.h>
 #include <stdlib.h>
@@ -392,7 +392,7 @@
 
   for (j = 0; j < 8; j++)
   {
-    memcpy(transBuffS, transBuff + (j * 128) + (1024 - 128),
+    memcpy(transBuffS, transBuff + (j * 128) + (512 - 64),
 	   2 * psyInfo->sizeS * sizeof(double));
 
     Hann(gpsyInfo, transBuffS, 2 * psyInfo->sizeS);