diff options
Diffstat (limited to 'third_party')
-rw-r--r-- | third_party/g7221/common/defs.h | 2 | ||||
-rw-r--r-- | third_party/g7221/encode/sam2coef.c | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/third_party/g7221/common/defs.h b/third_party/g7221/common/defs.h index 2c4978e0..40db16fb 100644 --- a/third_party/g7221/common/defs.h +++ b/third_party/g7221/common/defs.h @@ -140,7 +140,7 @@ void decoder(Bit_Obj *bitobj, Word16 *old_decoder_mlt_coefs, Word16 frame_error_flag); -Word16 samples_to_rmlt_coefs(Word16 *new_samples,Word16 *history,Word16 *coefs,Word16 dct_length); +Word16 samples_to_rmlt_coefs(const Word16 *new_samples,Word16 *history,Word16 *coefs,Word16 dct_length); void rmlt_coefs_to_samples(Word16 *coefs, Word16 *old_samples, Word16 *out_samples, 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; |