Eliminated a couple of unused variable warnings in the Broadvoice codec.

This commit is contained in:
Steve Underwood 2013-02-06 17:07:29 +08:00
parent f5151691c7
commit 4b46a5511e
2 changed files with 11 additions and 6 deletions

View 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++)

View 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++)