summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam Wilgus <me.theuser@yahoo.com>2018-12-08 02:25:17 -0600
committerWilliam Wilgus <me.theuser@yahoo.com>2018-12-08 02:25:17 -0600
commit69c6c77680b1a59b000bb1fa45f4ee5153afb9f8 (patch)
tree94eae76bf46c39462a8995f32683f9bc3fe4d011
parent94506894837242877c147bd755111cfd8f993ea7 (diff)
downloadrockbox-69c6c77680b1a59b000bb1fa45f4ee5153afb9f8.tar.gz
rockbox-69c6c77680b1a59b000bb1fa45f4ee5153afb9f8.tar.bz2
rockbox-69c6c77680b1a59b000bb1fa45f4ee5153afb9f8.zip
Fix speex warning lsp.c->lsp_to_lpc
I'm pretty sure this was a false positive Change-Id: I0ab375d1d844b3d468c24888c371f588052e1ce9
-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]);