summaryrefslogtreecommitdiffstats
path: root/libmpdemux
diff options
context:
space:
mode:
authorrfelker <rfelker@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-04-03 06:38:55 +0000
committerrfelker <rfelker@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-04-03 06:38:55 +0000
commit20674f6d49fddc4b846443f5413a064e15045e74 (patch)
tree68624e6a6bf2421892075fa24078c839f8ef4b27 /libmpdemux
parenta93707fd8f7cef756be7276ea0e97d7876c5907e (diff)
downloadmpv-20674f6d49fddc4b846443f5413a064e15045e74.tar.bz2
mpv-20674f6d49fddc4b846443f5413a064e15045e74.tar.xz
10l: huge amount of constant crap in data segment
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18033 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpdemux')
-rw-r--r--libmpdemux/frequencies.c34
-rw-r--r--libmpdemux/frequencies.h10
-rw-r--r--libmpdemux/tv.h2
3 files changed, 23 insertions, 23 deletions
diff --git a/libmpdemux/frequencies.c b/libmpdemux/frequencies.c
index 711348af8b..067e4de858 100644
--- a/libmpdemux/frequencies.c
+++ b/libmpdemux/frequencies.c
@@ -6,7 +6,7 @@
/* --------------------------------------------------------------------- */
/* US broadcast */
-static struct CHANLIST ntsc_bcast[] = {
+static const struct CHANLIST ntsc_bcast[] = {
{ "2", 55250 },
{ "3", 61250 },
{ "4", 67250 },
@@ -93,7 +93,7 @@ static struct CHANLIST ntsc_bcast[] = {
};
/* US cable */
-static struct CHANLIST ntsc_cable[] = {
+static const struct CHANLIST ntsc_cable[] = {
{ "1", 73250 },
{ "2", 55250 },
{ "3", 61250 },
@@ -234,7 +234,7 @@ static struct CHANLIST ntsc_cable[] = {
};
/* US HRC */
-static struct CHANLIST ntsc_hrc[] = {
+static const struct CHANLIST ntsc_hrc[] = {
{ "1", 72000 },
{ "2", 54000 },
{ "3", 60000 },
@@ -377,7 +377,7 @@ static struct CHANLIST ntsc_hrc[] = {
/* --------------------------------------------------------------------- */
/* JP broadcast */
-static struct CHANLIST ntsc_bcast_jp[] = {
+static const struct CHANLIST ntsc_bcast_jp[] = {
{ "1", 91250 },
{ "2", 97250 },
{ "3", 103250 },
@@ -445,7 +445,7 @@ static struct CHANLIST ntsc_bcast_jp[] = {
};
/* JP cable */
-static struct CHANLIST ntsc_cable_jp[] = {
+static const struct CHANLIST ntsc_cable_jp[] = {
{ "13", 109250 },
{ "14", 115250 },
{ "15", 121250 },
@@ -503,7 +503,7 @@ static struct CHANLIST ntsc_cable_jp[] = {
/* --------------------------------------------------------------------- */
/* australia */
-static struct CHANLIST pal_australia[] = {
+static const struct CHANLIST pal_australia[] = {
{ "0", 46250 },
{ "1", 57250 },
{ "2", 64250 },
@@ -717,14 +717,14 @@ static struct CHANLIST pal_australia[] = {
{ "68", 847250 }, \
{ "69", 855250 }
-static struct CHANLIST europe_west[] = {
+static const struct CHANLIST europe_west[] = {
FREQ_CCIR_I_III,
FREQ_CCIR_SL_SH,
FREQ_CCIR_H,
FREQ_UHF
};
-static struct CHANLIST europe_east[] = {
+static const struct CHANLIST europe_east[] = {
FREQ_OIRT_I_III,
FREQ_OIRT_SL_SH,
FREQ_CCIR_I_III,
@@ -733,7 +733,7 @@ static struct CHANLIST europe_east[] = {
FREQ_UHF
};
-static struct CHANLIST pal_italy[] = {
+static const struct CHANLIST pal_italy[] = {
{ "A", 53750 },
{ "B", 62250 },
{ "C", 82250 },
@@ -747,7 +747,7 @@ static struct CHANLIST pal_italy[] = {
FREQ_UHF
};
-static struct CHANLIST pal_ireland[] = {
+static const struct CHANLIST pal_ireland[] = {
{ "0", 45750 },
{ "1", 53750 },
{ "2", 61750 },
@@ -760,7 +760,7 @@ static struct CHANLIST pal_ireland[] = {
FREQ_UHF,
};
-static struct CHANLIST secam_france[] = {
+static const struct CHANLIST secam_france[] = {
{ "K01", 47750 },
{ "K02", 55750 },
{ "K03", 60500 },
@@ -811,7 +811,7 @@ static struct CHANLIST secam_france[] = {
/* --------------------------------------------------------------------- */
-static struct CHANLIST pal_newzealand[] = {
+static const struct CHANLIST pal_newzealand[] = {
{ "1", 45250 },
{ "2", 55250 },
{ "3", 62250 },
@@ -829,7 +829,7 @@ static struct CHANLIST pal_newzealand[] = {
/* --------------------------------------------------------------------- */
/* China broadcast */
-static struct CHANLIST pal_bcast_cn[] = {
+static const struct CHANLIST pal_bcast_cn[] = {
{ "1", 49750 },
{ "2", 57750 },
{ "3", 65750 },
@@ -929,7 +929,7 @@ static struct CHANLIST pal_bcast_cn[] = {
/* --------------------------------------------------------------------- */
/* South Africa Broadcast */
-static struct CHANLIST pal_bcast_za[] ={
+static const struct CHANLIST pal_bcast_za[] ={
{ "1", 175250 },
{ "2", 183250 },
{ "3", 191250 },
@@ -943,7 +943,7 @@ static struct CHANLIST pal_bcast_za[] ={
/* --------------------------------------------------------------------- */
-static struct CHANLIST argentina[] = {
+static const struct CHANLIST argentina[] = {
{ "001", 56250 },
{ "002", 62250 },
{ "003", 68250 },
@@ -1041,7 +1041,7 @@ static struct CHANLIST argentina[] = {
/* --------------------------------------------------------------------- */
-static struct CHANLIST russia[] = {
+static const struct CHANLIST russia[] = {
{"1", 49750 },
{"2", 59250 },
{"3", 77250 },
@@ -1144,7 +1144,7 @@ static struct CHANLIST russia[] = {
};
/* --------------------------------------------------------------------- */
-struct CHANLISTS chanlists[] = {
+const struct CHANLISTS chanlists[] = {
{ "us-bcast", ntsc_bcast, CHAN_COUNT(ntsc_bcast) },
{ "us-cable", ntsc_cable, CHAN_COUNT(ntsc_cable) },
{ "us-cable-hrc", ntsc_hrc, CHAN_COUNT(ntsc_hrc) },
diff --git a/libmpdemux/frequencies.h b/libmpdemux/frequencies.h
index e580934640..86bcebc08f 100644
--- a/libmpdemux/frequencies.h
+++ b/libmpdemux/frequencies.h
@@ -89,21 +89,21 @@
/* --------------------------------------------------------------------- */
struct CHANLIST {
- char *name;
+ char name[8];
int freq;
};
struct CHANLISTS {
- char *name;
- struct CHANLIST *list;
- int count;
+ char *name;
+ const struct CHANLIST *list;
+ int count;
};
#define CHAN_COUNT(x) (sizeof(x)/sizeof(struct CHANLIST))
/* --------------------------------------------------------------------- */
-extern struct CHANLISTS chanlists[];
+extern const struct CHANLISTS chanlists[];
//extern struct STRTAB chanlist_names[];
extern int chantab;
diff --git a/libmpdemux/tv.h b/libmpdemux/tv.h
index 10b4221ab4..5046dad2db 100644
--- a/libmpdemux/tv.h
+++ b/libmpdemux/tv.h
@@ -82,7 +82,7 @@ typedef struct tvi_handle_s {
/* specific */
int norm;
int chanlist;
- struct CHANLIST *chanlist_s;
+ const struct CHANLIST *chanlist_s;
int channel;
} tvi_handle_t;