summaryrefslogtreecommitdiffstats
path: root/stream
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-12-02 22:08:22 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-12-02 22:08:22 +0000
commitcdc332e6c0cc4930d88c2cb5879d312af01cb3b1 (patch)
treee46eeaf6140dfa9e9c8d954764cec0a75aa5f956 /stream
parent9016716700ce67affb9ac96c8d6e00ed30ac366c (diff)
downloadmpv-cdc332e6c0cc4930d88c2cb5879d312af01cb3b1.tar.bz2
mpv-cdc332e6c0cc4930d88c2cb5879d312af01cb3b1.tar.xz
Add a few forgotten static/const attributes in tvi_vbi.c
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25273 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'stream')
-rw-r--r--stream/tvi_vbi.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/stream/tvi_vbi.c b/stream/tvi_vbi.c
index 991a5e3c6e..443e5abe6c 100644
--- a/stream/tvi_vbi.c
+++ b/stream/tvi_vbi.c
@@ -158,8 +158,8 @@ typedef struct {
static unsigned char fixParity[256];
-static tt_char tt_space={0x20,7,0,0,0,0,0,0,0x20};
-static tt_char tt_error={'?',1,0,0,0,0,0,0,'?'}; // Red '?' on black background
+static const tt_char tt_space={0x20,7,0,0,0,0,0,0,0x20};
+static const tt_char tt_error={'?',1,0,0,0,0,0,0,'?'}; // Red '?' on black background
static double si[12];
static double co[12];
@@ -216,7 +216,7 @@ enum {
// conversion table for chars 0x20-0x7F (UTF8)
// TODO: add another languages
-static unsigned int lang_chars[LANGS][0x60]={
+static const unsigned int lang_chars[LANGS][0x60]={
{
//Latin
0x20,0x21,0x22,0x23,0x24,0x25,0x26,0x27,
@@ -307,7 +307,7 @@ static unsigned int lang_chars[LANGS][0x60]={
* 06: £ $ é ° ç » ¬ # ù à ò è ì Italian
*
*/
-static unsigned int latin_subchars[8][13]={
+static const unsigned int latin_subchars[8][13]={
// English
{0xa3,0x24,0x40,0xab,0xbd,0xbb,0xac,0x23,0xad,0xbc,0xa6,0xbe,0xf7},
// French
@@ -343,8 +343,8 @@ static unsigned int latin_subchars[8][13]={
struct {
unsigned char lang_code;
unsigned char charset;
- char* lang_name;
-} tt_languages[]=
+ const char* lang_name;
+} const tt_languages[]=
{
{ 0x01, LATIN, "French"},
{ 0x02, LATIN, "Swedish/Finnish/Hungarian"},
@@ -399,7 +399,7 @@ struct {
* \note Bits must be correctly ordered, that is for 24/18 (lowest bit first)
* P1 P2 D1 P3 D2 D3 D4 P4 D5 D6 D7 D8 D9 DA DB P5 DC DD DE DF DG DH DI P6
*/
-int corrHamm24(unsigned char *data){
+static int corrHamm24(unsigned char *data){
unsigned char syndrom=0;
int cw=data[0] | (data[1]<<8) | (data[2]<<16);
int i;