]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Eliminated a couple of unused variable warnings in the Broadvoice codec.
authorSteve Underwood <steveu@coppice.org>
Wed, 6 Feb 2013 09:07:29 +0000 (17:07 +0800)
committerSteve Underwood <steveu@coppice.org>
Wed, 6 Feb 2013 09:07:29 +0000 (17:07 +0800)
libs/broadvoice/src/floating/bv16/bv16encoder.c
libs/broadvoice/src/floating/bv32/bv32encoder.c

index 2b9b5372ee2be32abaa428dec520b8682c381606..2eccf7124cae2f4b13da6598ebdd7c24ee5adb00 100644 (file)
@@ -103,7 +103,6 @@ BV_DECLARE(int) bv16_encode(bv16_encode_state_t *cs,
     Float gainq;
     Float lg;
     Float ppt;
-    Float lth;
     Float dummy;
     int        pp;
     int cpp;
@@ -189,8 +188,15 @@ BV_DECLARE(int) bv16_encode(bv16_encode_state_t *cs,
 
         /* Level estimation */
         dummy = estl_alpha;
-        lth = estlevel(cs->prevlg[0], &cs->level, &cs->lmax, &cs->lmin,
-                       &cs->lmean, &cs->x1, LGPORDER + 1, Nfdm + 1, &dummy);
+        estlevel(cs->prevlg[0],
+                 &cs->level,
+                 &cs->lmax,
+                 &cs->lmin,
+                 &cs->lmean,
+                 &cs->x1,
+                 LGPORDER + 1,
+                 Nfdm + 1,
+                 &dummy);
 
         /* Scale the scalar quantizer codebook */
         for (i = 0;  i < (VDIM*CBSZ);  i++)
index d7a78c44e6c329beb8ba335d47c37fe6a8193f57..d6ec9b730689a8b6f0a3971759b35f1b06fd14af 100644 (file)
@@ -103,7 +103,6 @@ BV_DECLARE(int) bv32_encode(bv32_encode_state_t *cs,
     Float e;
     Float ee;
     Float ppt;
-    Float lth;
     int        pp;
     int cpp;
     int        i;
@@ -193,8 +192,8 @@ BV_DECLARE(int) bv32_encode(bv32_encode_state_t *cs,
             lg = (ee < TMinE)  ?  MinE  :  log(ee/SFRSZ)/log(2.0);
             bs.gidx[issf] = bv32_gainquan(gainq + issf, lg, cs->lgpm, cs->prevlg, cs->level);
 
-            /* Level Estimation */
-            lth = bv32_estlevel(cs->prevlg[0], &cs->level, &cs->lmax, &cs->lmin, &cs->lmean, &cs->x1);
+            /* Level estimation */
+            bv32_estlevel(cs->prevlg[0], &cs->level, &cs->lmax, &cs->lmin, &cs->lmean, &cs->x1);
 
             /* Scale the excitation codebook */
             for (i = 0;  i < (VDIM*CBSZ);  i++)