shithub: aacenc

Download patch

ref: e5ed4042304eb77778ead33032f06489a635effd
parent: 20abca8dd949811526fcc515ce6ecbb0c2cebd13
author: menno <menno>
date: Thu Feb 3 03:13:59 EST 2000

bugfix for blocks with only 0's

--- a/aac_qc.c
+++ b/aac_qc.c
@@ -779,6 +779,8 @@
 		for (sb = 0; sb < quantInfo->nr_of_sfb; sb++) {
 			scale_factor[sb] = 0;
 		}
+		for (i = 0; i < 1024; i++)
+			quant[i] = 0;
 	}
 
 	calc_noise(quantInfo, p_spectrum[0], quant, requant, noise, allowed_dist[0],