[FFmpeg-cvslog] r17546 - in trunk/libavcodec: celp_filters.c qcelp_lsp.c

vitor subversion
Mon Feb 23 23:19:16 CET 2009


Author: vitor
Date: Mon Feb 23 23:19:16 2009
New Revision: 17546

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

Patch by Kenan Gillet

Modified:
   trunk/libavcodec/celp_filters.c
   trunk/libavcodec/qcelp_lsp.c

Modified: trunk/libavcodec/celp_filters.c
==============================================================================
--- trunk/libavcodec/celp_filters.c	Mon Feb 23 20:51:16 2009	(r17545)
+++ trunk/libavcodec/celp_filters.c	Mon Feb 23 23:19:16 2009	(r17546)
@@ -102,6 +102,6 @@ void ff_celp_lp_synthesis_filterf(
     {
         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];
     }
 }

Modified: trunk/libavcodec/qcelp_lsp.c
==============================================================================
--- trunk/libavcodec/qcelp_lsp.c	Mon Feb 23 20:51:16 2009	(r17545)
+++ trunk/libavcodec/qcelp_lsp.c	Mon Feb 23 23:19:16 2009	(r17546)
@@ -81,7 +81,7 @@ void ff_qcelp_lspf2lpc(const float *lspf
 {
     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);




More information about the ffmpeg-cvslog mailing list