History

Change sign in ff_celp_lp_synthesis_filterf(). This makes this function useful for AMR and RA144.

Patch by Kenan Gillet Originally committed as revision 17546 to svn://svn.ffmpeg.org/ffmpeg/trunk

Kenan Gillet committed 17 years ago

Commit cacb8211 parent 40284e92 files · +2 −2Browse files

Unified · Split

2 files
  1. libavcodec/celp_filters.c +1 −1
  2. libavcodec/qcelp_lsp.c +1 −1
libavcodec/celp_filters.c+1−1
@@ -102,6 +102,6 @@ void ff_celp_lp_synthesis_filterf( · 101 unmodified lines
102102 {
103103 out[n] = in[n];
104104 for(i=1; i<filter_length; i++)
105− out[n] += filter_coeffs[i] * out[n-i];
105+ out[n] -= filter_coeffs[i] * out[n-i];
106106 }
107107 }
libavcodec/qcelp_lsp.c+1−1
@@ -81,7 +81,7 @@ void ff_qcelp_lspf2lpc(const float *lspf, float *lpc) · 80 unmodified lines
8181 {
8282 double pa[6], qa[6];
8383 int i;
84− double bandwith_expansion_coeff = -QCELP_BANDWITH_EXPANSION_COEFF * 0.5;
84+ double bandwith_expansion_coeff = QCELP_BANDWITH_EXPANSION_COEFF * 0.5;
8585
8686 lsp2polyf(lspf, pa, 5);
8787 lsp2polyf(lspf + 1, qa, 5);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t