[FFmpeg-cvslog] g723_1: add some const for more correctness
Michael Niedermayer
git at videolan.org
Wed Sep 5 21:34:52 CEST 2012
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed Sep 5 21:03:17 2012 +0200| [269e6212ee443cfa36651f7c22594dbe01b04024] | committer: Michael Niedermayer
g723_1: add some const for more correctness
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=269e6212ee443cfa36651f7c22594dbe01b04024
---
libavcodec/g723_1.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/libavcodec/g723_1.c b/libavcodec/g723_1.c
index 52a7505..29eb4fa 100644
--- a/libavcodec/g723_1.c
+++ b/libavcodec/g723_1.c
@@ -1848,7 +1848,7 @@ static void comp_harmonic_coeff(int16_t *buf, int16_t pitch_lag, HFParam *hf)
*
* @param hf filter parameters
*/
-static void harmonic_filter(HFParam *hf, int16_t *src, int16_t *dest)
+static void harmonic_filter(HFParam *hf, const int16_t *src, int16_t *dest)
{
int i;
@@ -1858,7 +1858,7 @@ static void harmonic_filter(HFParam *hf, int16_t *src, int16_t *dest)
}
}
-static void harmonic_noise_sub(HFParam *hf, int16_t *src, int16_t *dest)
+static void harmonic_noise_sub(HFParam *hf, const int16_t *src, int16_t *dest)
{
int i;
for (i = 0; i < SUBFRAME_LEN; i++) {
@@ -1880,7 +1880,7 @@ static void harmonic_noise_sub(HFParam *hf, int16_t *src, int16_t *dest)
*/
static void synth_percept_filter(int16_t *qnt_lpc, int16_t *perf_lpc,
int16_t *perf_fir, int16_t *perf_iir,
- int16_t *src, int16_t *dest, int scale)
+ const int16_t *src, int16_t *dest, int scale)
{
int i, j;
int16_t buf_16[SUBFRAME_LEN + LPC_ORDER];
@@ -1921,7 +1921,7 @@ static void synth_percept_filter(int16_t *qnt_lpc, int16_t *perf_lpc,
* @param index the current subframe index
*/
static void acb_search(G723_1_Context *p, int16_t *residual,
- int16_t *impulse_resp, int16_t *buf,
+ int16_t *impulse_resp, const int16_t *buf,
int index)
{
@@ -2040,7 +2040,7 @@ static void acb_search(G723_1_Context *p, int16_t *residual,
*
* @param buf target vector
*/
-static void sub_acb_contrib(int16_t *residual, int16_t *impulse_resp,
+static void sub_acb_contrib(const int16_t *residual, const int16_t *impulse_resp,
int16_t *buf)
{
int i, j;
More information about the ffmpeg-cvslog
mailing list