From 3e6c3b7623a431f5f5fd8dc62ad95bb067a336d2 Mon Sep 17 00:00:00 2001 From: drowe67 Date: Mon, 15 Nov 2010 01:26:55 +0000 Subject: [PATCH] fixed array offset, works OK now git-svn-id: https://svn.code.sf.net/p/freetel/code@229 01035d8c-6547-0410-b346-abe4f91aad63 --- codec2/unittest/genlsp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/codec2/unittest/genlsp.c b/codec2/unittest/genlsp.c index 59423776..026205e2 100644 --- a/codec2/unittest/genlsp.c +++ b/codec2/unittest/genlsp.c @@ -27,7 +27,7 @@ */ #define P 10 /* LP order */ -#define LSP_DELTA1 0.05 /* grid spacing for LSP root searches */ +#define LSP_DELTA1 0.01 /* grid spacing for LSP root searches */ #define NW 279 /* frame size in samples */ #define N 80 /* frame to frame shift */ #define THRESH 40.0 /* threshold energy/sample for frame inclusion */ @@ -121,7 +121,7 @@ int main(int argc, char *argv[]) { printf("Active Frame: %ld unstables: %d\n",af, unstables); find_aks(Sn, ak, NW, P, &Eres); - roots = lpc_to_lsp(&ak[1], P , lsp, 5, LSP_DELTA1); + roots = lpc_to_lsp(ak, P , lsp, 5, LSP_DELTA1); if (roots == P) { if (lspd) { fprintf(flsp,"%f ",lsp[0]); -- 2.25.1