diff options
author | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2007-12-23 16:19:13 +0100 |
---|---|---|
committer | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2007-12-23 16:19:13 +0100 |
commit | 680ede4292dce5893a37703e68ca2fca8b882814 (patch) | |
tree | f5397618f1bebfe5002e6db61f936767f20e2ea4 /src | |
parent | a6b72ecda7a25bffd0dfe4b654fcce815a146105 (diff) | |
download | xine-lib-680ede4292dce5893a37703e68ca2fca8b882814.tar.gz xine-lib-680ede4292dce5893a37703e68ca2fca8b882814.tar.bz2 |
Mark the sub_palette and sub_trans tables constant.
Diffstat (limited to 'src')
-rw-r--r-- | src/spu_dec/sputext_decoder.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/spu_dec/sputext_decoder.c b/src/spu_dec/sputext_decoder.c index 73d242524..db2236097 100644 --- a/src/spu_dec/sputext_decoder.c +++ b/src/spu_dec/sputext_decoder.c @@ -43,7 +43,7 @@ #define rgb2yuv(R,G,B) ((((((66*R+129*G+25*B+128)>>8)+16)<<8)|(((112*R-94*G-18*B+128)>>8)+128))<<8|(((-38*R-74*G+112*B+128)>>8)+128)) -static uint32_t sub_palette[22]={ +static const uint32_t sub_palette[22]={ /* RED */ rgb2yuv(0,0,0), rgb2yuv(0,0,0), @@ -70,7 +70,7 @@ static uint32_t sub_palette[22]={ rgb2yuv(0,170,255) }; -static uint8_t sub_trans[22]={ +static const uint8_t sub_trans[22]={ 0, 0, 3, 6, 8, 10, 12, 14, 15, 15, 15, 0, 0, 3, 6, 8, 10, 12, 14, 15, 15, 15 }; |