aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/g729dec.c
diff options
context:
space:
mode:
authorVladimir Voroshilov <voroshil@gmail.com>2009-06-26 17:42:25 +0000
committerVladimir Voroshilov <voroshil@gmail.com>2009-06-26 17:42:25 +0000
commit2b0691349f92e344ab6bddee4235a76acd1e9bc3 (patch)
treeb7b972ad1e7306f0af50255d964877a52530d528 /libavcodec/g729dec.c
parent01a3c821a2e07e9df241c35103adb7e3ed23ecad (diff)
downloadffmpeg-2b0691349f92e344ab6bddee4235a76acd1e9bc3.tar.gz
Replace pitch_delay_int array with single variable.
Originally committed as revision 19280 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/g729dec.c')
-rw-r--r--libavcodec/g729dec.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/g729dec.c b/libavcodec/g729dec.c
index 628aee0166..573167a2a1 100644
--- a/libavcodec/g729dec.c
+++ b/libavcodec/g729dec.c
@@ -258,12 +258,12 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size,
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)