Stop collapsing the background noise channels when switching to mono
This commit is contained in:
parent
682b6cf1ad
commit
a350bf5262
1 changed files with 2 additions and 5 deletions
|
@ -2195,17 +2195,14 @@ int celt_decode_with_ec_float(CELTDecoder * restrict st, const unsigned char *da
|
|||
dec = &_dec;
|
||||
}
|
||||
|
||||
if (CC==1&&C==2)
|
||||
if (C>CC)
|
||||
{
|
||||
RESTORE_STACK;
|
||||
return CELT_CORRUPTED_DATA;
|
||||
} else if (CC==2&&C==1)
|
||||
} else if (C<CC)
|
||||
{
|
||||
for (i=0;i<st->mode->nbEBands;i++)
|
||||
{
|
||||
oldBandE[i]=MAX16(oldBandE[i],oldBandE[st->mode->nbEBands+i]);
|
||||
backgroundLogE[i]=MAX16(backgroundLogE[i],backgroundLogE[st->mode->nbEBands+i]);
|
||||
}
|
||||
}
|
||||
|
||||
total_bits = len*8;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue