[FFmpeg-soc] [soc] soc g723.1 3954a13966fedbd9b9bec85db37c2bc4bcc08824

naufal11 at gmail.com naufal11 at gmail.com
Wed Jun 16 13:14:30 CEST 2010



- Log -----------------------------------------------------------------
commit 3954a13966fedbd9b9bec85db37c2bc4bcc08824
Author: Naufal <naufal11 at gmail.com>
Date:   Wed Jun 16 16:41:17 2010 +0530

    Rename variable

diff --git a/libavcodec/g723_1.c b/libavcodec/g723_1.c
index 1abf8aa..9bc7d11 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 *ptr = lpc;
+    int16_t *lsp_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      = ptr[j] >> 7;
-            int offset     = ptr[j] & 0x7f;
+            int index      = lsp_ptr[j] >> 7;
+            int offset     = lsp_ptr[j] & 0x7f;
             int64_t temp1  = cos_tab[index] << 16;
             int temp2      = (cos_tab[index + 1] - cos_tab[index]) *
                              ((offset << 8) + 0x80) << 1;
-            ptr[j] = av_clipl_int32(((temp1 + temp2) << 1) + (1 << 15)) >> 16;
+            lsp_ptr[j] = av_clipl_int32(((temp1 + temp2) << 1) + (1 << 15)) >> 16;
         }
 
-        ff_acelp_lsp2lpc(ptr, ptr, LPC_ORDER >> 1);
-        ptr += LPC_ORDER + 1;
+        ff_acelp_lsp2lpc(lsp_ptr, lsp_ptr, LPC_ORDER >> 1);
+        lsp_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