diff options
author | Vitor Sessak <vitor1001@gmail.com> | 2008-07-17 22:39:29 +0000 |
---|---|---|
committer | Vitor Sessak <vitor1001@gmail.com> | 2008-07-17 22:39:29 +0000 |
commit | e4265007a60fb9614dff864b684af032901f514b (patch) | |
tree | 209a0f204b32da380daaaee07547f2e84f2ec1e4 /libavcodec/ra288.c | |
parent | 6afc7c19f050b294616f5a73bdc48e15666f83b4 (diff) | |
download | ffmpeg-e4265007a60fb9614dff864b684af032901f514b.tar.gz |
Declare function parameters as const
Originally committed as revision 14266 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/ra288.c')
-rw-r--r-- | libavcodec/ra288.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/libavcodec/ra288.c b/libavcodec/ra288.c index 60e985498a..5f44fed45c 100644 --- a/libavcodec/ra288.c +++ b/libavcodec/ra288.c @@ -37,7 +37,8 @@ typedef struct { float lhist[10]; } Real288_internal; -static inline float scalar_product_float(float * v1, float * v2, int size) +static inline float scalar_product_float(const float * v1, const float * v2, + int size) { float res = 0.; @@ -90,7 +91,7 @@ static void decode(Real288_internal *glob, float gain, int cb_coef) } /* column multiply */ -static void colmult(float *tgt, float *m1, const float *m2, int n) +static void colmult(float *tgt, const float *m1, const float *m2, int n) { while (n--) *(tgt++) = (*(m1++)) * (*(m2++)); @@ -133,19 +134,19 @@ static int pred(float *in, float *tgt, int n) } /* product sum (lsf) */ -static void prodsum(float *tgt, float *src, int len, int n) +static void prodsum(float *tgt, const float *src, int len, int n) { for (; n >= 0; n--) tgt[n] = scalar_product_float(src, src - n, len); } -static void co(int n, int i, int j, float *in, float *out, float *st1, +static void co(int n, int i, int j, const float *in, float *out, float *st1, float *st2, const float *table) { int a, b, c; unsigned int x; - float *fp; + const float *fp; float buffer1[37]; float buffer2[37]; float work[111]; |