Revision d79c06b2

View differences:

libavcodec/sipr.c
110 110
    }
111 111
};
112 112

  
113
const float ff_pow_0_5[] = {
114
    1.0/(1 <<  1), 1.0/(1 <<  2), 1.0/(1 <<  3), 1.0/(1 <<  4),
115
    1.0/(1 <<  5), 1.0/(1 <<  6), 1.0/(1 <<  7), 1.0/(1 <<  8),
116
    1.0/(1 <<  9), 1.0/(1 << 10), 1.0/(1 << 11), 1.0/(1 << 12),
117
    1.0/(1 << 13), 1.0/(1 << 14), 1.0/(1 << 15), 1.0/(1 << 16)
118
};
119

  
113 120
static void dequant(float *out, const int *idx, const float *cbs[])
114 121
{
115 122
    int i;
......
273 280

  
274 281
    for (i = 0; i < LP_FILTER_ORDER; i++) {
275 282
        lpc_d[i] = lpc[i] * ff_pow_0_75[i];
276
        lpc_n[i] = lpc[i] *    pow_0_5 [i];
283
        lpc_n[i] = lpc[i] * ff_pow_0_5 [i];
277 284
    };
278 285

  
279 286
    memcpy(pole_out - LP_FILTER_ORDER, ctx->postfilter_mem,
libavcodec/siprdata.h
24 24
#ifndef AVCODEC_SIPRDATA_H
25 25
#define AVCODEC_SIPRDATA_H
26 26

  
27
static const float pow_0_5[] = {
28
    1.0/(1 <<  1), 1.0/(1 <<  2), 1.0/(1 <<  3), 1.0/(1 <<  4),
29
    1.0/(1 <<  5), 1.0/(1 <<  6), 1.0/(1 <<  7), 1.0/(1 <<  8),
30
    1.0/(1 <<  9), 1.0/(1 << 10), 1.0/(1 << 11), 1.0/(1 << 12),
31
    1.0/(1 << 13), 1.0/(1 << 14), 1.0/(1 << 15), 1.0/(1 << 16)
32
};
33

  
34 27
static const float mean_lsf[10] = {
35 28
    0.297151,  0.452308,  0.765443,  1.134803,  1.421125,
36 29
    1.773822,  2.049173,  2.375914,  2.585097,  0.075756

Also available in: Unified diff