Revision 64e4af2a libavcodec/ra288.c

View differences:

libavcodec/ra288.c
96 96

  
97 97
    /* block 48 of G.728 spec */
98 98
    /* exp(sum * 0.1151292546497) == pow(10.0,sum/20) */
99
    sumsum = exp(sum * 0.1151292546497) * gain / (2048 * 4096);
99
    sumsum = exp(sum * 0.1151292546497) * gain * (1.0/(1<<23));
100 100

  
101 101
    for (i=0; i < 5; i++)
102 102
        buffer[i] = codetable[cb_coef][i] * sumsum;
103 103

  
104
    sum = (4096 * 4096) * scalar_product_float(buffer, buffer, 5) / 5;
104
    sum = scalar_product_float(buffer, buffer, 5) * ((1<<24)/5.);
105 105

  
106 106
    sum = FFMAX(sum, 1);
107 107

  

Also available in: Unified diff