Displaying 1 result from an estimated 1 matches for "lcg_rand".
2011 Mar 02
1
[PATCH] Fix CNG when effEBands is less than nbEBands.
...@ -1967,17 +1968,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<C*N;i++)
+ for (c=0;c<C;c++)
{
- seed = lcg_rand(seed);
- X[i] = (celt_int32)(seed)>>20;
+ for (i=0;i<st->mode->effEBands;i++)
+ {
+ int j;
+ int boffs;
+ int blen;
+ boffs = N*c+(st->mode->eBands[i]<<LM);
+ blen = (st->mode->eBands[...