[FFmpeg-soc] [soc]: r2773 - amr/amrnbfloatdec.c
superdump
subversion at mplayerhq.hu
Sun Jul 13 12:22:10 CEST 2008
Author: superdump
Date: Sun Jul 13 12:22:10 2008
New Revision: 2773
Log:
Fix lsp2poly()
Modified:
amr/amrnbfloatdec.c
Modified: amr/amrnbfloatdec.c
==============================================================================
--- amr/amrnbfloatdec.c (original)
+++ amr/amrnbfloatdec.c Sun Jul 13 12:22:10 2008
@@ -425,10 +425,10 @@ static void lsp2poly(float *lsp, float *
f[ 0] = 1.0;
for(i=0; i<5; i++) {
- int idx_lsp = 2*i;
- f[i+1] = -lsp[idx_lsp]*f[i] + 2.0*f[i-1];
+ float b = -2.0 * lsp[2*i];
+ f[i+1] = b*f[i] + 2.0*f[i-1];
for(j=i; j>0; j--) {
- f[j] += -lsp[idx_lsp]*f[j-1] + f[j-2];
+ f[j] += b*f[j-1] + f[j-2];
}
}
}
More information about the FFmpeg-soc
mailing list