SHORTCUTS now disables the encoder's de-emphasis (i.e. can't check encoder
authorJean-Marc Valin <jean-marc.valin@usherbrooke.ca>
Wed, 23 Apr 2008 22:29:25 +0000 (08:29 +1000)
committerJean-Marc Valin <jean-marc.valin@usherbrooke.ca>
Wed, 23 Apr 2008 22:29:25 +0000 (08:29 +1000)
against the decoder)

libcelt/celt.c

index a6e4cb0..c347f33 100644 (file)
@@ -364,6 +364,7 @@ int EXPORT celt_encode(CELTEncoder * restrict st, celt_int16_t * restrict pcm, u
 
    compute_inv_mdcts(st->mode, st->mode->window, freq, st->out_mem, st->mdct_overlap);
    /* De-emphasis and put everything back at the right place in the synthesis history */
+#ifndef SHORTCUTS
    for (c=0;c<C;c++)
    {
       int j;
@@ -378,7 +379,7 @@ int EXPORT celt_encode(CELTEncoder * restrict st, celt_int16_t * restrict pcm, u
          outp += C;
       }
    }
-   
+#endif
    if (ec_enc_tell(&st->enc, 0) < nbCompressedBytes*8 - 7)
       celt_warning_int ("many unused bits: ", nbCompressedBytes*8-ec_enc_tell(&st->enc, 0));
    /*printf ("%d\n", ec_enc_tell(&st->enc, 0)-8*nbCompressedBytes);*/