commit | 85f41b20df8559dc85780201603352eb66489df5 | [log] [tgz] |
---|---|---|
author | Jean-Marc Valin <jean-marc.valin@octasic.com> | Fri Jul 16 18:12:45 2010 -0400 |
committer | Jean-Marc Valin <jean-marc.valin@octasic.com> | Fri Jul 16 18:12:45 2010 -0400 |
tree | 1cb447ae1b16acc784589fecae409d78f468195a | |
parent | 3b0df0dc2a0f17bdff7b41d2b437e3e042fec1bc [diff] [blame] |
Some work towards being able to encode a 48 kHz stream from 32 kHz audio (incomplete)
diff --git a/libcelt/modes.c b/libcelt/modes.c index af2d007..3e14dbb 100644 --- a/libcelt/modes.c +++ b/libcelt/modes.c
@@ -389,6 +389,9 @@ if (mode->eBands==NULL) goto failure; + mode->effEBands = mode->nbEBands; + while (mode->eBands[mode->effEBands] > mode->shortMdctSize) + mode->effEBands--; mode->pitchEnd = 4000*(celt_int32)mode->shortMdctSize/Fs; /* Overlap must be divisible by 4 */