# HG changeset patch # User voroshil # Date 1246038145 0 # Node ID b584c223a6a11f6ca0012fac36f609fb640aafda # Parent 3207f231419212178d74e9b69f2fb218491eeb5f Replace pitch_delay_int array with single variable. diff -r 3207f2314192 -r b584c223a6a1 g729dec.c --- a/g729dec.c Wed Jun 24 22:35:11 2009 +0000 +++ b/g729dec.c Fri Jun 26 17:42:25 2009 +0000 @@ -258,12 +258,12 @@ gc_1st_index = get_bits(&gb, format.gc_1st_index_bits); gc_2nd_index = get_bits(&gb, format.gc_2nd_index_bits); - ff_acelp_weighted_vector_sum(fc + pitch_delay_int[i], - fc + pitch_delay_int[i], + ff_acelp_weighted_vector_sum(fc + pitch_delay_int, + fc + pitch_delay_int, fc, 1 << 14, av_clip(ctx->gain_pitch, SHARP_MIN, SHARP_MAX), 0, 14, - SUBFRAME_SIZE - pitch_delay_int[i]); + SUBFRAME_SIZE - pitch_delay_int); if (frame_erasure) { ctx->gain_pitch = (29491 * ctx->gain_pitch) >> 15; // 0.90 (0.15)