Mercurial > libavcodec.hg
changeset 9017:1e2c96617886 libavcodec
Change sign in ff_celp_lp_synthesis_filterf(). This makes this function
useful for AMR and RA144.
Patch by Kenan Gillet
author | vitor |
---|---|
date | Mon, 23 Feb 2009 22:19:16 +0000 |
parents | 2c23106a79eb |
children | 98995efdf3aa |
files | celp_filters.c qcelp_lsp.c |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/celp_filters.c Mon Feb 23 19:25:18 2009 +0000 +++ b/celp_filters.c Mon Feb 23 22:19:16 2009 +0000 @@ -102,6 +102,6 @@ { out[n] = in[n]; for(i=1; i<filter_length; i++) - out[n] += filter_coeffs[i] * out[n-i]; + out[n] -= filter_coeffs[i] * out[n-i]; } }
--- a/qcelp_lsp.c Mon Feb 23 19:25:18 2009 +0000 +++ b/qcelp_lsp.c Mon Feb 23 22:19:16 2009 +0000 @@ -81,7 +81,7 @@ { double pa[6], qa[6]; int i; - double bandwith_expansion_coeff = -QCELP_BANDWITH_EXPANSION_COEFF * 0.5; + double bandwith_expansion_coeff = QCELP_BANDWITH_EXPANSION_COEFF * 0.5; lsp2polyf(lspf, pa, 5); lsp2polyf(lspf + 1, qa, 5);