Mercurial > libavcodec.hg
comparison qcelpdec.c @ 10502:f132cde57bbe libavcodec
Do not hardcode filter order in ff_acelp_lspd2lpc()
author | vitor |
---|---|
date | Mon, 09 Nov 2009 12:06:19 +0000 |
parents | 5f2ced30548b |
children | 75bb65276023 |
comparison
equal
deleted
inserted
replaced
10501:bdf4a9ca162a | 10502:f132cde57bbe |
---|---|
576 int i; | 576 int i; |
577 | 577 |
578 for (i=0; i<10; i++) | 578 for (i=0; i<10; i++) |
579 lsp[i] = cos(M_PI * lspf[i]); | 579 lsp[i] = cos(M_PI * lspf[i]); |
580 | 580 |
581 ff_acelp_lspd2lpc(lsp, lpc); | 581 ff_acelp_lspd2lpc(lsp, lpc, 5); |
582 | 582 |
583 for (i=0; i<10; i++) | 583 for (i=0; i<10; i++) |
584 { | 584 { |
585 lpc[i] *= bandwidth_expansion_coeff; | 585 lpc[i] *= bandwidth_expansion_coeff; |
586 bandwidth_expansion_coeff *= QCELP_BANDWIDTH_EXPANSION_COEFF; | 586 bandwidth_expansion_coeff *= QCELP_BANDWIDTH_EXPANSION_COEFF; |