mirror of
https://github.com/mstorsjo/fdk-aac.git
synced 2025-03-12 22:00:03 +01:00
Fix SBR multichannel noise
for 5.1 ch, the channel elements are as follows: SCE - CPE - CPE - LFE and the channel-mapping table for 5.1 ch is : { 2, 0, 1, 4, 5, 3,255,255}, /* 5.1ch */ For the last LFE channel, sbr decoder returns error, SBRDEC_UNSUPPORTED_CONFIG;
This commit is contained in:
parent
1b0cec288c
commit
89aeea5f29
@ -1444,7 +1444,7 @@ sbrDecoder_DecodeElement (
|
||||
self->flags |= (applyPs) ? SBRDEC_PS_DECODED : 0;
|
||||
}
|
||||
|
||||
if (channelMapping[0] == 255 || channelMapping[1] == 255)
|
||||
if (channelMapping[0] == 255 || ((*numOutChannels == 2) && channelMapping[1] == 255))
|
||||
return SBRDEC_UNSUPPORTED_CONFIG;
|
||||
if (!pSbrChannel[0]->SbrDec.LppTrans.pSettings)
|
||||
return SBRDEC_UNSUPPORTED_CONFIG;
|
||||
|
Loading…
x
Reference in New Issue
Block a user