diff --git a/libcelt/celt.c b/libcelt/celt.c index 31d35f8b..ccab29d0 100644 --- a/libcelt/celt.c +++ b/libcelt/celt.c @@ -1967,17 +1967,26 @@ static void celt_decode_lost(CELTDecoder * restrict st, celt_word16 * restrict p log2Amp(st->mode, st->start, st->end, bandE, backgroundLogE, C); seed = st->rng; - for (i=0;i>20; + for (i=0;imode->effEBands;i++) + { + int j; + int boffs; + int blen; + boffs = N*c+(st->mode->eBands[i]<mode->eBands[i+1]-st->mode->eBands[i])<>20; + } + renormalise_vector(X+boffs, blen, Q15ONE); + } } st->rng = seed; - for (c=0;cmode->nbEBands;i++) - renormalise_vector(X+N*c+(st->mode->eBands[i]<mode->eBands[i+1]-st->mode->eBands[i])<mode, X, freq, bandE, st->mode->nbEBands, C, 1<mode, X, freq, bandE, st->mode->effEBands, C, 1<mode, 0, freq, out_syn, overlap_mem, C, LM); plc = 0;