mirror of
https://github.com/xiph/opus.git
synced 2025-05-30 23:27:42 +00:00
Don't call denormalise_bands() on silence
This commit is contained in:
parent
ce15e65319
commit
3afc6ffff0
2 changed files with 18 additions and 19 deletions
|
@ -916,19 +916,18 @@ int celt_decode_with_ec(CELTDecoder * OPUS_RESTRICT st, const unsigned char *dat
|
|||
ALLOC(bandE, nbEBands*C, celt_ener);
|
||||
|
||||
log2Amp(mode, st->start, st->end, bandE, oldBandE, C);
|
||||
ALLOC(freq, IMAX(CC,C)*N, celt_sig); /**< Interleaved signal MDCTs */
|
||||
|
||||
if (silence)
|
||||
{
|
||||
for (i=0;i<C*nbEBands;i++)
|
||||
{
|
||||
bandE[i] = 0;
|
||||
oldBandE[i] = -QCONST16(28.f,DB_SHIFT);
|
||||
}
|
||||
for (i=0;i<C*N;i++)
|
||||
freq[i] = 0;
|
||||
} else {
|
||||
/* Synthesis */
|
||||
denormalise_bands(mode, X, freq, bandE, st->start, effEnd, C, M);
|
||||
}
|
||||
ALLOC(freq, IMAX(CC,C)*N, celt_sig); /**< Interleaved signal MDCTs */
|
||||
/* Synthesis */
|
||||
denormalise_bands(mode, X, freq, bandE, st->start, effEnd, C, M);
|
||||
|
||||
c=0; do {
|
||||
OPUS_MOVE(decode_mem[c], decode_mem[c]+N, DECODE_BUFFER_SIZE-N+overlap/2);
|
||||
} while (++c<CC);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue