From 304e9007d39eab4763fd63c02888091511915b1f Mon Sep 17 00:00:00 2001 From: jm Date: Fri, 1 Dec 2006 13:33:51 +0000 Subject: reviving the old EPIC_48K mode. git-svn-id: http://svn.xiph.org/trunk/speex@12161 0101bb08-14d6-0310-b084-bc0e0c8e3800 --- libspeex/nb_celp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libspeex/nb_celp.c') 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; -- cgit v1.2.3