changeset 9887:b584c223a6a1 libavcodec

Replace pitch_delay_int array with single variable.
author voroshil
date Fri, 26 Jun 2009 17:42:25 +0000
parents 3207f2314192
children 62705926ba33
files g729dec.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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)