summaryrefslogtreecommitdiffstats
path: root/lib/rbcodec/codecs/libspeex/lsp.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rbcodec/codecs/libspeex/lsp.c')
-rw-r--r--lib/rbcodec/codecs/libspeex/lsp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rbcodec/codecs/libspeex/lsp.c b/lib/rbcodec/codecs/libspeex/lsp.c
index 83365a8639..f19390a151 100644
--- a/lib/rbcodec/codecs/libspeex/lsp.c
+++ b/lib/rbcodec/codecs/libspeex/lsp.c
@@ -459,7 +459,7 @@ void lsp_to_lpc(spx_lsp_t *freq,spx_coef_t *ak,int lpcrdr, char *stack)
/* work out 2cos terms in Q14 */
- ALLOC(freqn, lpcrdr, spx_word16_t);
+ ALLOC(freqn, (lpcrdr + 1), spx_word16_t);
for (i=0;i<lpcrdr;i++)
freqn[i] = ANGLE2X(freq[i]);