Revision 2b069134

View differences:

libavcodec/g729dec.c
258 258
        gc_1st_index  = get_bits(&gb, format.gc_1st_index_bits);
259 259
        gc_2nd_index  = get_bits(&gb, format.gc_2nd_index_bits);
260 260

  
261
        ff_acelp_weighted_vector_sum(fc + pitch_delay_int[i],
262
                                     fc + pitch_delay_int[i],
261
        ff_acelp_weighted_vector_sum(fc + pitch_delay_int,
262
                                     fc + pitch_delay_int,
263 263
                                     fc, 1 << 14,
264 264
                                     av_clip(ctx->gain_pitch, SHARP_MIN, SHARP_MAX),
265 265
                                     0, 14,
266
                                     SUBFRAME_SIZE - pitch_delay_int[i]);
266
                                     SUBFRAME_SIZE - pitch_delay_int);
267 267

  
268 268
        if (frame_erasure) {
269 269
            ctx->gain_pitch = (29491 * ctx->gain_pitch) >> 15; // 0.90 (0.15)

Also available in: Unified diff