diff options
author | jm <jm@0101bb08-14d6-0310-b084-bc0e0c8e3800> | 2006-12-01 16:33:51 +0300 |
---|---|---|
committer | jm <jm@0101bb08-14d6-0310-b084-bc0e0c8e3800> | 2006-12-01 16:33:51 +0300 |
commit | 304e9007d39eab4763fd63c02888091511915b1f (patch) | |
tree | e2f0f424575129c79ba5bf1e8c75eec7ea61f311 /libspeex/nb_celp.c | |
parent | 3b09214446e7d4211e341965f41ba7773ba69808 (diff) |
reviving the old EPIC_48K mode.
git-svn-id: http://svn.xiph.org/trunk/speex@12161 0101bb08-14d6-0310-b084-bc0e0c8e3800
Diffstat (limited to 'libspeex/nb_celp.c')
-rw-r--r-- | libspeex/nb_celp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libspeex/nb_celp.c b/libspeex/nb_celp.c index ef7b618..f70b7da 100644 --- a/libspeex/nb_celp.c +++ b/libspeex/nb_celp.c @@ -432,7 +432,7 @@ int nb_encode(void *state, void *vin, SpeexBits *bits) ol_gain2=ol2; ol_gain2 = sqrt(2*ol_gain2*(ol1+ol2))*1.3*(1-.5*GAIN_SCALING_1*GAIN_SCALING_1*ol_pitch_coef*ol_pitch_coef); - ol_gain=SHR(sqrt(1+ol_gain2/st->frameSize),SIG_SHIFT); + ol_gain=SHR32(sqrt(1+ol_gain2/st->frameSize),SIG_SHIFT); } else #endif @@ -1227,7 +1227,7 @@ int nb_decode(void *state, SpeexBits *bits, void *vout) VARDECL(spx_lsp_t *qlsp); spx_word16_t pitch_average=0; #ifdef EPIC_48K - int pitch_half[2]; + int pitch_half[2] = {0, 0}; int ol_pitch_id=0; #endif spx_word16_t *out = (spx_word16_t*)vout; |