[FFmpeg-soc] [soc] soc g723.1 0798154cd700686c895887dc1bb4f5569017a31f
naufal11 at gmail.com
naufal11 at gmail.com
Wed Jun 16 13:20:15 CEST 2010
- Log -----------------------------------------------------------------
commit 0798154cd700686c895887dc1bb4f5569017a31f
Author: Naufal <naufal11 at gmail.com>
Date: Wed Jun 16 16:48:01 2010 +0530
Rename variable(again)
diff --git a/libavcodec/g723_1.c b/libavcodec/g723_1.c
index 9bc7d11..5b032ef 100755
--- a/libavcodec/g723_1.c
+++ b/libavcodec/g723_1.c
@@ -231,7 +231,7 @@ static void inverse_quant(int16_t *cur_lsp, int16_t *prev_lsp, int8_t *lsp_index
static void lsp_interpolate(int16_t *lpc, int16_t *cur_lsp, int16_t *prev_lsp)
{
int i, j;
- int16_t *lsp_ptr = lpc;
+ int16_t *lpc_ptr = lpc;
// cur_lsp * 0.25 + prev_lsp * 0.75
ff_acelp_weighted_vector_sum(&lpc[1], cur_lsp, prev_lsp,
@@ -245,16 +245,16 @@ static void lsp_interpolate(int16_t *lpc, int16_t *cur_lsp, int16_t *prev_lsp)
for (i = 0; i < SUBFRAMES; i++) {
// Calculate cosine
for (j = 1; j <= LPC_ORDER; j++) {
- int index = lsp_ptr[j] >> 7;
- int offset = lsp_ptr[j] & 0x7f;
+ int index = lpc_ptr[j] >> 7;
+ int offset = lpc_ptr[j] & 0x7f;
int64_t temp1 = cos_tab[index] << 16;
int temp2 = (cos_tab[index + 1] - cos_tab[index]) *
((offset << 8) + 0x80) << 1;
- lsp_ptr[j] = av_clipl_int32(((temp1 + temp2) << 1) + (1 << 15)) >> 16;
+ lpc_ptr[j] = av_clipl_int32(((temp1 + temp2) << 1) + (1 << 15)) >> 16;
}
- ff_acelp_lsp2lpc(lsp_ptr, lsp_ptr, LPC_ORDER >> 1);
- lsp_ptr += LPC_ORDER + 1;
+ ff_acelp_lsp2lpc(lpc_ptr, lpc_ptr, LPC_ORDER >> 1);
+ lpc_ptr += LPC_ORDER + 1;
}
}
-----------------------------------------------------------------------
Summary of changes:
libavcodec/g723_1.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
--
http://github.com/naufal/ffmpeg-soc
More information about the FFmpeg-soc
mailing list