shithub: aacenc

Download patch

ref: e8ac3684018e7739779f8bd044829204191e38d6
parent: 781b09f7c290edce02c9169d1c67986e46ad4f2f
author: menno <menno>
date: Thu Dec 23 10:21:19 EST 1999

Quick bugfix after latest update

--- a/psych.c
+++ b/psych.c
@@ -52,9 +52,9 @@
 
 Source file: 
 
-$Id: psych.c,v 1.7 1999/12/23 14:34:51 menno Exp $
-$Id: psych.c,v 1.7 1999/12/23 14:34:51 menno Exp $
-$Id: psych.c,v 1.7 1999/12/23 14:34:51 menno Exp $
+$Id: psych.c,v 1.8 1999/12/23 15:21:19 menno Exp $
+$Id: psych.c,v 1.8 1999/12/23 15:21:19 menno Exp $
+$Id: psych.c,v 1.8 1999/12/23 15:21:19 menno Exp $
 
 **********************************************************************/
 
@@ -66,6 +66,7 @@
 #include "psych.h"
 
 void fft(float *x_real, float *energy, int N);
+void fft_side(float x_real0[],float x_real1[], float *x_real, float *energy, int N, int sign);
 
 SR_INFO sr_info_aac[MAX_SAMPLING_RATES+1] =
 {
@@ -520,8 +521,8 @@
 	{
 		ch = 0;
 		psy_step1(p_time_signal,sample, no_of_chan);
-		psy_step2(&sample[no_of_chan], part_tbl_long, part_tbl_short, psy_stvar_long,
-			psy_stvar_short, ch);
+		psy_step2(sample, part_tbl_long, part_tbl_short, psy_stvar_long,
+			psy_stvar_short, no_of_chan);
 		if (no_of_chan < 2) {
 			psy_step4(&psy_stvar_long[no_of_chan], &psy_stvar_short[no_of_chan], &psy_var_long, &psy_var_short, no_of_chan);
 		}