Revision 645a6be1

View differences:

libavcodec/ra288.c
103 103
    gain_block[9] = 10 * log10(sum) - 32;
104 104

  
105 105
    for (i=0; i < 5; i++) {
106
        block[i] = 0;
106
        block[i] = buffer[i];
107 107
        for (j=0; j < 36; j++)
108 108
            block[i] -= block[i-1-j]*ractx->sp_lpc[j];
109
        for (j=0; j < i; j++)
110
            buffer[i] -= buffer[i-1-j]*ractx->sp_lpc[j];
111 109
    }
112 110

  
113 111
    /* output */
114 112
    for (i=0; i < 5; i++)
115
        block[i] = av_clipf(block[i] + buffer[i], -4095, 4095);
113
        block[i] = av_clipf(block[i], -4095, 4095);
116 114
}
117 115

  
118 116
static void convolve(float *tgt, const float *src, int len, int n)

Also available in: Unified diff