[FFmpeg-soc] [soc]: r2035 - aac/aac.c
andoma
subversion at mplayerhq.hu
Tue Mar 25 16:30:05 CET 2008
Author: andoma
Date: Tue Mar 25 16:30:04 2008
New Revision: 2035
Log:
If intensity stereo coding or noise substitution is on for a particular
scalefactor band, no M/S stereo decoding should be carried out.
Modified:
aac/aac.c
Modified: aac/aac.c
==============================================================================
--- aac/aac.c (original)
+++ aac/aac.c Tue Mar 25 16:30:04 2008
@@ -1470,7 +1470,8 @@ static void ms_tool(AACContext * ac, cpe
for (g = 0; g < ics->num_window_groups; g++) {
for (gp = 0; gp < ics->group_len[g]; gp++) {
for (i = 0; i < ics->max_sfb; i++) {
- if (ms->mask[g][i]) {
+ if (ms->mask[g][i] &&
+ cpe->ch[0].cb[g][i] < NOISE_HCB && cpe->ch[1].cb[g][i] < NOISE_HCB) {
for (k = offsets[i]; k < offsets[i+1]; k++) {
float tmp = ch0[k] - ch1[k];
ch0[k] += ch1[k];
More information about the FFmpeg-soc
mailing list