shithub: opus

Download patch

ref: 9fbb56a50ef2f08202e9207348d641ca6d2e72ab
parent: ff74e396e4616be054e596101f60132aab828d04
author: Jean-Marc Valin <[email protected]>
date: Wed Feb 27 10:44:18 EST 2008

fixed-point: converted pitch_quant_bands() -- that one was an easy one-liner

--- a/libcelt/bands.c
+++ b/libcelt/bands.c
@@ -208,7 +208,7 @@
    {
       int j;
       for (j=B*pBands[i];j<B*pBands[i+1];j++)
-         P[j] *= PGAIN_SCALING_1*gains[i];
+         P[j] = MULT16_16_Q15(gains[i], P[j]);
       /*printf ("%f ", gain);*/
    }
    for (i=B*pBands[m->nbPBands];i<B*pBands[m->nbPBands+1];i++)