shithub: aacenc

Download patch

ref: 9c68d59adbe330735ef406d5605a01938e27487f
parent: 93f96b276d7d577bf7bff6566d33ce28da2f2105
author: menno <menno>
date: Thu Jan 6 08:54:51 EST 2000

Fix

--- a/aac_qc.c
+++ b/aac_qc.c
@@ -546,10 +546,14 @@
 
 		amp_over = 0;
 
+#if 1
+		noise_thresh = 0.0;
+#else
 		noise_thresh = -900;
 		for ( sb = 0; sb < quantInfo->nr_of_sfb; sb++ )
 			noise_thresh = max(1.05*noise[sb], noise_thresh);
 		noise_thresh = min(noise_thresh, 0.0);
+#endif
 
 		for (sb = 0; sb < quantInfo->nr_of_sfb; sb++) {
 			if ((noise[sb] > noise_thresh)&&(quantInfo->book_vector[sb]!=INTENSITY_HCB)&&(quantInfo->book_vector[sb]!=INTENSITY_HCB2)) {