shithub: opus

Download patch

ref: eaeb0b7788c801baacdaa976a77abc715d00780d
parent: 56cf2d6ae0c72ff837618926124e82f56cdca33e
author: Jean-Marc Valin <[email protected]>
date: Mon Apr 28 11:57:03 EDT 2008

Better value for prediction coef beta

--- a/libcelt/quant_bands.c
+++ b/libcelt/quant_bands.c
@@ -157,7 +157,7 @@
    VARDECL(celt_word16_t, error);
    SAVE_STACK;
    /* The .7 is a heuristic */
-   beta = MULT16_16_Q15(QCONST16(.7f,15),coef);
+   beta = MULT16_16_Q15(QCONST16(.8f,15),coef);
    
    ALLOC(error, m->nbEBands, celt_word16_t);
    bits = ec_enc_tell(enc, 0);
@@ -227,7 +227,7 @@
    celt_word16_t prev = 0;
    celt_word16_t coef = m->ePredCoef;
    /* The .7 is a heuristic */
-   celt_word16_t beta = MULT16_16_Q15(QCONST16(.7f,15),coef);
+   celt_word16_t beta = MULT16_16_Q15(QCONST16(.8f,15),coef);
    bits = ec_dec_tell(dec, 0);
    
    /* Decode at a fixed coarse resolution */