Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/quite/celt.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Marc Valin <Jean-Marc.Valin@csiro.au>2007-12-07 09:10:14 +0300
committerJean-Marc Valin <Jean-Marc.Valin@csiro.au>2007-12-07 09:10:14 +0300
commite38c7c18f77ba03e4f3c18c6de5cc4cbb17dcdf3 (patch)
tree3bf353915d7215d9eb977710091391777bec3306 /libcelt/celt.c
parent8143be30263bfa23276e4a7e9c5b2428b455174e (diff)
Energy is now Laplace-encoded (very poorly for now)
Diffstat (limited to 'libcelt/celt.c')
-rw-r--r--libcelt/celt.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libcelt/celt.c b/libcelt/celt.c
index 7d72023..b5d0c21 100644
--- a/libcelt/celt.c
+++ b/libcelt/celt.c
@@ -397,12 +397,12 @@ int celt_decode(CELTDecoder *st, char *data, int len, short *pcm)
ec_byte_readinit(&buf,data,len);
ec_dec_init(&dec,&buf);
- /* Get band energies */
- unquant_energy(st->mode, bandE, st->oldBandE, &dec);
-
/* Get the pitch index */
pitch_index = ec_dec_uint(&dec, MAX_PERIOD-(B+1)*N);;
+ /* Get band energies */
+ unquant_energy(st->mode, bandE, st->oldBandE, &dec);
+
/* Pitch MDCT */
compute_mdcts(&st->mdct_lookup, st->window, st->out_mem+pitch_index, P, N, B);