Revision 730c1e4a libavcodec/g729dec.c

View differences:

libavcodec/g729dec.c
107 107
                                     fc, 1 << 14,
108 108
                                     av_clip(ctx->gain_pitch, SHARP_MIN, SHARP_MAX),
109 109
                                     0, 14,
110
                                     ctx->subframe_size - pitch_delay_int[i]);
110
                                     SUBFRAME_SIZE - pitch_delay_int[i]);
111 111

  
112 112
        if (ctx->frame_erasure) {
113 113
            ctx->gain_pitch = (29491 * ctx->gain_pitch) >> 15; // 0.90 (0.15)
......
120 120
            gain_corr_factor = cb_gain_1st_8k[parm->gc_1st_index[i]][1] +
121 121
                               cb_gain_2nd_8k[parm->gc_2nd_index[i]][1];
122 122

  
123
        ff_acelp_weighted_vector_sum(ctx->exc + i * ctx->subframe_size,
124
                                     ctx->exc + i * ctx->subframe_size, fc,
123
        ff_acelp_weighted_vector_sum(ctx->exc + i * SUBFRAME_SIZE,
124
                                     ctx->exc + i * SUBFRAME_SIZE, fc,
125 125
                                     (!voicing && ctx->frame_erasure) ? 0 : ctx->gain_pitch,
126 126
                                     ( voicing && ctx->frame_erasure) ? 0 : ctx->gain_code,
127
                                     1<<13, 14, ctx->subframe_size);
127
                                     1 << 13, 14, SUBFRAME_SIZE);
128 128

  
129 129
    if (buf_size < packed_frame_size) {
130 130
        av_log(avctx, AV_LOG_ERROR, "Error processing packet: packet size too small\n");

Also available in: Unified diff