diff options
Diffstat (limited to 'pjmedia/src/pjmedia-codec/speex/lsp.c')
-rw-r--r-- | pjmedia/src/pjmedia-codec/speex/lsp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pjmedia/src/pjmedia-codec/speex/lsp.c b/pjmedia/src/pjmedia-codec/speex/lsp.c index 6e7ea311..a73d8835 100644 --- a/pjmedia/src/pjmedia-codec/speex/lsp.c +++ b/pjmedia/src/pjmedia-codec/speex/lsp.c @@ -4,8 +4,8 @@ Original copyright AUTHOR......: David Rowe DATE CREATED: 24/2/93 -Heavily modified by Jean-Marc Valin (fixed-point, optimizations, - additional functions, ...) +Heavily modified by Jean-Marc Valin (c) 2002-2006 (fixed-point, + optimizations, additional functions, ...) This file contains functions for converting Linear Prediction Coefficients (LPC) to Line Spectral Pair (LSP) and back. Note that the @@ -509,7 +509,7 @@ void lsp_to_lpc(spx_lsp_t *freq,spx_coef_t *ak,int lpcrdr, char *stack) /* hard limit ak's to +/- 32767 */ - if (a < -32767) a = 32767; + if (a < -32767) a = -32767; if (a > 32767) a = 32767; ak[j-1] = (short)a; |