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
102 {102 {
103 out[n] = in[n];103 out[n] = in[n];
104 for(i=1; i<filter_length; i++)104 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];
106 }106 }
107}107}
libavcodec/qcelp_lsp.c+1−1
@@ -81,7 +81,7 @@ void ff_qcelp_lspf2lpc(const float *lspf, float *lpc) · 80 unmodified lines
81{81{
82 double pa[6], qa[6];82 double pa[6], qa[6];
83 int i;83 int i;
84 double bandwith_expansion_coeff = -QCELP_BANDWITH_EXPANSION_COEFF * 0.5;84 double bandwith_expansion_coeff = QCELP_BANDWITH_EXPANSION_COEFF * 0.5;
85 85
86 lsp2polyf(lspf, pa, 5);86 lsp2polyf(lspf, pa, 5);
87 lsp2polyf(lspf + 1, qa, 5);87 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