diff options
author | jm <jm@0101bb08-14d6-0310-b084-bc0e0c8e3800> | 2006-05-08 18:16:53 +0400 |
---|---|---|
committer | jm <jm@0101bb08-14d6-0310-b084-bc0e0c8e3800> | 2006-05-08 18:16:53 +0400 |
commit | cabafbd3201ff9c701733551ec1df671324237df (patch) | |
tree | 6f127d7cb062b643e6b24fa83bfd7bc0d7c22338 /libspeex/nb_celp.c | |
parent | d34c6952108d7071f686cd1b09471340ceec9188 (diff) |
cleaned up temp allocation in enhancer a bit
git-svn-id: http://svn.xiph.org/trunk/speex@11377 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 6e1213d..6a8ee06 100644 --- a/libspeex/nb_celp.c +++ b/libspeex/nb_celp.c @@ -1690,8 +1690,8 @@ int nb_decode(void *state, SpeexBits *bits, void *vout) #ifndef OLD_ENHANCER if (st->lpc_enh_enabled && SUBMODE(comb_gain)>0 && !st->count_lost) { - multicomb(st->exc-st->subframeSize, out, st->interp_qlpc, st->lpcSize, 2*st->subframeSize, best_pitch, pitch_gain, SUBMODE(comb_gain), stack); - multicomb(st->exc+st->subframeSize, out+2*st->subframeSize, st->interp_qlpc, st->lpcSize, 2*st->subframeSize, best_pitch, pitch_gain, SUBMODE(comb_gain), stack); + multicomb(st->exc-st->subframeSize, out, st->interp_qlpc, st->lpcSize, 2*st->subframeSize, best_pitch, st->max_pitch, SUBMODE(comb_gain), stack); + multicomb(st->exc+st->subframeSize, out+2*st->subframeSize, st->interp_qlpc, st->lpcSize, 2*st->subframeSize, best_pitch, st->max_pitch, SUBMODE(comb_gain), stack); } else { for (i=0;i<st->frameSize;i++) out[i]=PSHR32(st->exc[i-st->subframeSize],SIG_SHIFT); |