Mercurial > libavcodec.hg
comparison lsp.c @ 6774:ca449dc51bd7 libavcodec
Fix compilation error.
It was introduced after changing input parameter and
overlooked during review process.
author | voroshil |
---|---|
date | Sun, 11 May 2008 05:28:29 +0000 |
parents | e6338dd4a6e3 |
children | 30d7b2e3a381 |
comparison
equal
deleted
inserted
replaced
6773:ec58e76c25a3 | 6774:ca449dc51bd7 |
---|---|
94 int ff1 = f1[i] + f1[i-1]; // (3.22) | 94 int ff1 = f1[i] + f1[i-1]; // (3.22) |
95 int ff2 = f2[i] - f2[i-1]; // (3.22) | 95 int ff2 = f2[i] - f2[i-1]; // (3.22) |
96 | 96 |
97 ff1 += 1 << 10; // for rounding | 97 ff1 += 1 << 10; // for rounding |
98 lp[i] = (ff1 + ff2) >> 11; // divide by 2 and (3.22) -> (3.12) | 98 lp[i] = (ff1 + ff2) >> 11; // divide by 2 and (3.22) -> (3.12) |
99 lp[lp_order + 1 - i] = (ff1 - ff2) >> 11; // divide by 2 and (3.22) -> (3.12) | 99 lp[(lp_half_order << 1) + 1 - i] = (ff1 - ff2) >> 11; // divide by 2 and (3.22) -> (3.12) |
100 } | 100 } |
101 } | 101 } |
102 | 102 |
103 void ff_acelp_lp_decode(int16_t* lp_1st, int16_t* lp_2nd, const int16_t* lsp_2nd, const int16_t* lsp_prev, int lp_order) | 103 void ff_acelp_lp_decode(int16_t* lp_1st, int16_t* lp_2nd, const int16_t* lsp_2nd, const int16_t* lsp_prev, int lp_order) |
104 { | 104 { |