[xiph-commits] r11315 - trunk/speex/libspeex
jm at svn.xiph.org
jm at svn.xiph.org
Sat Apr 29 00:39:23 PDT 2006
Author: jm
Date: 2006-04-29 00:39:20 -0700 (Sat, 29 Apr 2006)
New Revision: 11315
Modified:
trunk/speex/libspeex/nb_celp.c
Log:
Better data alignment for Blackfin (i.e. no bus error on blackfin assembly)
Modified: trunk/speex/libspeex/nb_celp.c
===================================================================
--- trunk/speex/libspeex/nb_celp.c 2006-04-29 06:03:49 UTC (rev 11314)
+++ trunk/speex/libspeex/nb_celp.c 2006-04-29 07:39:20 UTC (rev 11315)
@@ -159,8 +159,8 @@
/* Allocating excitation buffer */
st->excBuf = speex_alloc((mode->frameSize+mode->pitchEnd+1)*sizeof(spx_sig_t));
st->exc = st->excBuf + mode->pitchEnd + 1;
- st->swBuf = speex_alloc((mode->frameSize+mode->pitchEnd+1)*sizeof(spx_word16_t));
- st->sw = st->swBuf + mode->pitchEnd + 1;
+ st->swBuf = speex_alloc((mode->frameSize+mode->pitchEnd+2)*sizeof(spx_word16_t));
+ st->sw = st->swBuf + mode->pitchEnd + 2;
st->window= lpc_window;
@@ -295,7 +295,7 @@
/* Move signals 1 frame towards the past */
speex_move(st->excBuf, st->excBuf+st->frameSize, (st->max_pitch+1)*sizeof(spx_sig_t));
- speex_move(st->swBuf, st->swBuf+st->frameSize, (st->max_pitch+1)*sizeof(spx_word16_t));
+ speex_move(st->swBuf, st->swBuf+st->frameSize, (st->max_pitch+2)*sizeof(spx_word16_t));
{
VARDECL(spx_word16_t *w_sig);
More information about the commits
mailing list