shithub: aacenc

Download patch

ref: f12918fbb3750599399505d4dbf6ff4027d0c8eb
parent: 88c21b018c8eb827016538ae1c338941e2a70afd
author: menno <menno>
date: Sun Oct 1 11:03:04 EDT 2000

Small fix in LFE frequency cut-off

--- a/enc_tf.c
+++ b/enc_tf.c
@@ -493,10 +493,11 @@
    ************************************************************************/
   {
     int chanNum;
-    for (chanNum=0;chanNum<max_ch;chanNum++) { 
-      if (channelInfo[chanNum].lfe) {           
-        int i;    
-        for (i=13;i<sfb_offset_table[chanNum][nr_of_sfb[chanNum]];i++)      
+    for (chanNum=0;chanNum<max_ch;chanNum++) {
+      if (channelInfo[chanNum].lfe) {
+        int i;
+        for (i = sfb_offset_table[chanNum][4];
+			i < sfb_offset_table[chanNum][nr_of_sfb[chanNum]]; i++)
           spectral_line_vector[chanNum][i] = 0;
       }
     }
--- a/psych.c
+++ b/psych.c
@@ -637,7 +637,7 @@
 					psy_stvar_long[chanNum].ismr[i] = 0.004; /* -24 dB */
 				}
 				for (i = 4; i < NSFB_LONG; i++) {
-					psy_stvar_long[chanNum].ismr[i] = 1.0; /* -24 dB */
+					psy_stvar_long[chanNum].ismr[i] = 1.0;
 				}
 				p_chpo_long[chanNum].p_ratio   = psy_stvar_long[chanNum].ismr;