diff options
author | Darren Salt <linux@youmustbejoking.demon.co.uk> | 2007-04-08 01:12:44 +0100 |
---|---|---|
committer | Darren Salt <linux@youmustbejoking.demon.co.uk> | 2007-04-08 01:12:44 +0100 |
commit | 3a233b827783151c4c08985224782f1dcce43a8f (patch) | |
tree | 5377813a1b3369d2700050df921ec0b33426b7f6 /src/libmpeg2 | |
parent | f12149f0ca2743e6f5f9d39ba53b27c306137597 (diff) | |
download | xine-lib-3a233b827783151c4c08985224782f1dcce43a8f.tar.gz xine-lib-3a233b827783151c4c08985224782f1dcce43a8f.tar.bz2 |
Mark various private arrays, structs & fn parameters as static and/or const.
Two of the modified files are headers, but each contains definitions as well as
declarations and is only ever used once.
Diffstat (limited to 'src/libmpeg2')
-rw-r--r-- | src/libmpeg2/idct_altivec.c | 2 | ||||
-rw-r--r-- | src/libmpeg2/slice.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/libmpeg2/idct_altivec.c b/src/libmpeg2/idct_altivec.c index ed8b58cfd..895984c45 100644 --- a/src/libmpeg2/idct_altivec.c +++ b/src/libmpeg2/idct_altivec.c @@ -148,7 +148,7 @@ #define VEC_S16(a,b,c,d,e,f,g,h) (vector_s16_t) {a, b, c, d, e, f, g, h} #endif -static vector_s16_t constants[5] = { +static const vector_s16_t constants[5] = { VEC_S16(23170, 13573, 6518, 21895, -23170, -21895, 32, 31), VEC_S16(16384, 22725, 21407, 19266, 16384, 19266, 21407, 22725), VEC_S16(22725, 31521, 29692, 26722, 22725, 26722, 29692, 31521), diff --git a/src/libmpeg2/slice.c b/src/libmpeg2/slice.c index 8cb5c33b6..91a4c47b1 100644 --- a/src/libmpeg2/slice.c +++ b/src/libmpeg2/slice.c @@ -32,7 +32,7 @@ #include "vlc.h" -static int non_linear_quantizer_scale [] = { +static const int non_linear_quantizer_scale [] = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 10, 12, 14, 16, 18, 20, 22, 24, 28, 32, 36, 40, 44, 48, 52, |