diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2011-09-24 19:39:18 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2011-09-24 19:39:18 +0200 |
commit | 0b61af73823e88444b585c156d6c7b3677ce03bf (patch) | |
tree | eb0bc3f8437d2bc071b84d13a995b6ac7251e314 /libavcodec/lsp.c | |
parent | 1aad9cd9d26adcca1d398a4cb3d67f89a6fa8967 (diff) | |
download | ffmpeg-0b61af73823e88444b585c156d6c7b3677ce03bf.tar.gz |
Restore WIP g729 code that has been remvoed by diego biurrun.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/lsp.c')
-rw-r--r-- | libavcodec/lsp.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/lsp.c b/libavcodec/lsp.c index 42a32d7971..374539a029 100644 --- a/libavcodec/lsp.c +++ b/libavcodec/lsp.c @@ -150,7 +150,11 @@ void ff_acelp_lp_decode(int16_t* lp_1st, int16_t* lp_2nd, const int16_t* lsp_2nd /* LSP values for first subframe (3.2.5 of G.729, Equation 24)*/ for(i=0; i<lp_order; i++) +#ifdef G729_BITEXACT + lsp_1st[i] = (lsp_2nd[i] >> 1) + (lsp_prev[i] >> 1); +#else lsp_1st[i] = (lsp_2nd[i] + lsp_prev[i]) >> 1; +#endif ff_acelp_lsp2lpc(lp_1st, lsp_1st, lp_order >> 1); |