commit | aead79b133ba976a0f6101748c0cc39c6e12040e | [log] [tgz] |
---|---|---|
author | Jean-Marc Valin <jean-marc.valin@usherbrooke.ca> | Tue May 11 07:34:24 2010 -0400 |
committer | Jean-Marc Valin <jean-marc.valin@usherbrooke.ca> | Tue May 11 07:46:35 2010 -0400 |
tree | d89f34bef3601c51fa8670f256d2740881325492 | |
parent | c40d6f97a2456e7706740c670229e4800eef825e [diff] [blame] |
Proper use of logN and logM for the offsets
diff --git a/libcelt/modes.c b/libcelt/modes.c index 69165a1..147dcc1 100644 --- a/libcelt/modes.c +++ b/libcelt/modes.c
@@ -379,7 +379,7 @@ goto failure; for (i=0;i<mode->nbEBands;i++) - logN[i] = log2_frac(mode->nbShortMdcts*(mode->eBands[i+1]-mode->eBands[i]), BITRES); + logN[i] = log2_frac(mode->eBands[i+1]-mode->eBands[i], BITRES); mode->logN = logN; #endif /* !STATIC_MODES */