summaryrefslogtreecommitdiff
blob: d4e3c39526f0c56196595045e4606929d539e367 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
https://bugs.gentoo.org/show_bug.cgi?id=103444
http://sourceforge.net/tracker/index.php?func=detail&aid=975905&group_id=704&atid=100704

diff -Naur faac-orig/libfaac/frame.c faac/libfaac/frame.c
--- faac-orig/libfaac/frame.c	2004-04-13 07:47:33.000000000 -0600
+++ faac/libfaac/frame.c	2007-03-11 21:24:23.000000000 -0600
@@ -731,6 +731,11 @@
 
     MSEncode(coderInfo, channelInfo, hEncoder->freqBuff, numChannels, allowMidside);
 
+	for (channel = 0; channel < numChannels; channel++)
+	{
+		CalcAvgEnrg(&coderInfo[channel], hEncoder->freqBuff[channel]);
+	}
+
     /* Quantize and code the signal */
     for (channel = 0; channel < numChannels; channel++) {
         if (coderInfo[channel].block_type == ONLY_SHORT_WINDOW) {