Commit ae0e515f authored by Jean-Paul Saman's avatar Jean-Paul Saman

modules/demux/ts.c: fix compiler warnings

Solve compiler warnings:
- unused parameters
- unsigned vs signed comparisons
parent 1acfbd82
......@@ -1616,8 +1616,8 @@ static void ParsePES( demux_t *p_demux, ts_pid_t *pid )
{
block_t *p_pes = pid->es->p_pes;
uint8_t header[34];
int i_pes_size = 0;
int i_skip = 0;
size_t i_pes_size = 0;
size_t i_skip = 0;
mtime_t i_dts = -1;
mtime_t i_pts = -1;
mtime_t i_length = 0;
......@@ -3188,7 +3188,7 @@ static void PMTSetupEsTeletext( demux_t *p_demux, ts_pid_t *pid,
es_format_t *p_fmt = &pid->es->fmt;
ts_teletext_page_t p_page[2 * 64 + 20];
int i_page = 0;
size_t i_page = 0;
/* Gather pages informations */
#if defined _DVBPSI_DR_56_H_ && \
......@@ -3207,7 +3207,7 @@ static void PMTSetupEsTeletext( demux_t *p_demux, ts_pid_t *pid,
{
const dvbpsi_teletextpage_t *p_src = &p_sub->p_pages[i];
if( p_src->i_teletext_type < 0 || p_src->i_teletext_type >= 0x06 )
if( /* p_src->i_teletext_type < 0 || */ p_src->i_teletext_type >= 0x06 )
continue;
assert( i_page < sizeof(p_page)/sizeof(*p_page) );
......@@ -3285,7 +3285,7 @@ static void PMTSetupEsTeletext( demux_t *p_demux, ts_pid_t *pid,
}
else
{
for( int i = 0; i < i_page; i++ )
for( size_t i = 0; i < i_page; i++ )
{
ts_es_t *p_es;
......@@ -3608,6 +3608,8 @@ static void PMTSetupEs0xA0( demux_t *p_demux, ts_pid_t *pid,
static void PMTSetupEsHDMV( demux_t *p_demux, ts_pid_t *pid,
const dvbpsi_pmt_es_t *p_es )
{
VLC_UNUSED( p_demux );
es_format_t *p_fmt = &pid->es->fmt;
/* Blu-Ray mapping */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment