summaryrefslogtreecommitdiff
path: root/third_party/g7221/encode
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2009-04-20 14:19:11 +0000
committerBenny Prijono <bennylp@teluu.com>2009-04-20 14:19:11 +0000
commitf8ca7b03d701cd46ead9a61ee18c17d232a616a1 (patch)
treebc15ac76df66a68066a694455608a3307c1971ab /third_party/g7221/encode
parent96d0f3f079f982be294f694590c49b8e9fed2420 (diff)
More ticket #774: added option to shift PCM input to encoder right by some value (default is 1) to make it compatible with some other app
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2620 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'third_party/g7221/encode')
-rw-r--r--third_party/g7221/encode/sam2coef.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/third_party/g7221/encode/sam2coef.c b/third_party/g7221/encode/sam2coef.c
index fc369e0c..3dd5b766 100644
--- a/third_party/g7221/encode/sam2coef.c
+++ b/third_party/g7221/encode/sam2coef.c
@@ -65,12 +65,13 @@
***************************************************************************/
-Word16 samples_to_rmlt_coefs(Word16 *new_samples,Word16 *old_samples,Word16 *coefs,Word16 dct_length)
+Word16 samples_to_rmlt_coefs(const Word16 *new_samples,Word16 *old_samples,Word16 *coefs,Word16 dct_length)
{
Word16 index, vals_left,mag_shift,n;
Word16 windowed_data[MAX_DCT_LENGTH];
- Word16 *new_ptr, *old_ptr, *sam_low, *sam_high;
+ Word16 *old_ptr;
+ const Word16 *new_ptr, *sam_low, *sam_high;
Word16 *win_low, *win_high;
Word16 *dst_ptr;
Word16 neg_win_low;