const char *dvb_rolloff2str(int p)
{
- static char __thread buf[16];
+ static __thread char buf[16];
const char *res = dvb_common2str(p);
if (res)
return res;
return dvb_verify(atoi(p) * 10, rolloff_table);
}
-const static struct strtab delsystab[] = {
+static const struct strtab delsystab[] = {
{ "NONE", DVB_SYS_NONE },
{ "DVB-C", DVB_SYS_DVBC_ANNEX_A },
{ "DVBC/ANNEX_A", DVB_SYS_DVBC_ANNEX_A },
const char *dvb_fec2str(int p)
{
- static char __thread buf[16];
+ static __thread char buf[16];
const char *res = dvb_common2str(p);
if (res)
return res;
return dvb_verify(hi * 100 + lo, fec_table);
}
-const static struct strtab qamtab[] = {
+static const struct strtab qamtab[] = {
{ "NONE", DVB_MOD_NONE },
{ "AUTO", DVB_MOD_AUTO },
{ "QPSK", DVB_MOD_QPSK },
const char *dvb_bw2str(int p)
{
- static char __thread buf[17];
+ static __thread char buf[17];
const char *res = dvb_common2str(p);
if (res)
return res;
return dvb_verify(hi, bw_table);
}
-const static struct strtab invertab[] = {
+static const struct strtab invertab[] = {
{ "NONE", DVB_INVERSION_UNDEFINED },
{ "AUTO", DVB_INVERSION_AUTO },
{ "ON", DVB_INVERSION_ON },
};
dvb_str2val(inver);
-const static struct strtab modetab[] = {
+static const struct strtab modetab[] = {
{ "NONE", DVB_TRANSMISSION_MODE_NONE },
{ "AUTO", DVB_TRANSMISSION_MODE_AUTO },
{ "1k", DVB_TRANSMISSION_MODE_1K },
};
dvb_str2val(mode);
-const static struct strtab guardtab[] = {
+static const struct strtab guardtab[] = {
{ "NONE", DVB_GUARD_INTERVAL_NONE },
{ "AUTO", DVB_GUARD_INTERVAL_AUTO },
{ "1/4", DVB_GUARD_INTERVAL_1_4 },
};
dvb_str2val(guard);
-const static struct strtab hiertab[] = {
+static const struct strtab hiertab[] = {
{ "NONE", DVB_HIERARCHY_NONE },
{ "AUTO", DVB_HIERARCHY_AUTO },
{ "1", DVB_HIERARCHY_1 },
};
dvb_str2val(hier);
-const static struct strtab poltab[] = {
+static const struct strtab poltab[] = {
{ "V", DVB_POLARISATION_VERTICAL },
{ "H", DVB_POLARISATION_HORIZONTAL },
{ "L", DVB_POLARISATION_CIRCULAR_LEFT },
};
dvb_str2val(pol);
-const static struct strtab typetab[] = {
+static const struct strtab typetab[] = {
{"DVB-T", DVB_TYPE_T},
{"DVB-C", DVB_TYPE_C},
{"DVB-S", DVB_TYPE_S},
};
dvb_str2val(type);
-const static struct strtab pilottab[] = {
+static const struct strtab pilottab[] = {
{"NONE", DVB_PILOT_NONE},
{"AUTO", DVB_PILOT_AUTO},
{"ON", DVB_PILOT_ON},
};
dvb_str2val(pilot);
-const static struct strtab plsmodetab[] = {
+static const struct strtab plsmodetab[] = {
{"ROOT", DVB_PLS_ROOT},
{"GOLD", DVB_PLS_GOLD},
{"COMBO", DVB_PLS_COMBO},
return buf;
}
-const int
+int
dvb_sat_position_from_str( const char *buf )
{
const char *s = buf;
}
}
-const static int mpa_br[2][3][16] = {
+static const int mpa_br[2][3][16] = {
{
{0, 32, 64, 96, 128, 160, 192, 224, 256, 288, 320, 352, 384, 416, 448, 0},
{0, 32, 48, 56, 64, 80, 96, 112, 128, 160, 192, 224, 256, 320, 384, 0},
}
};
-const static int mpa_sr[4] = {44100, 48000, 32000, 0};
-const static int mpa_sri[4] = {4, 3, 5, 0};
+static const int mpa_sr[4] = {44100, 48000, 32000, 0};
+static const int mpa_sri[4] = {4, 3, 5, 0};
static inline int
mpa_valid_frame(uint32_t h)
/**
* (E)AC3 audio parser
*/
-const static int ac3_freq_tab[4] = {48000, 44100, 32000, 0};
+static const int ac3_freq_tab[4] = {48000, 44100, 32000, 0};
-const static uint16_t ac3_frame_size_tab[38][3] = {
+static const uint16_t ac3_frame_size_tab[38][3] = {
{ 64, 69, 96 },
{ 64, 70, 96 },
{ 80, 87, 120 },