Commit ce94e2fe authored by Rémi Duraffort's avatar Rémi Duraffort

Make the buildbot happy by fixing some of the warnings.

parent f9afd65c
......@@ -183,7 +183,7 @@ static inline int ps_pkt_id( block_t *p_pkt )
{
if( p_pkt->p_buffer[3] == 0xbd &&
p_pkt->i_buffer >= 9 &&
p_pkt->i_buffer >= 9 + p_pkt->p_buffer[8] )
p_pkt->i_buffer >= 9 + (size_t)p_pkt->p_buffer[8] )
{
/* VOB extension */
return 0xbd00 | p_pkt->p_buffer[9+p_pkt->p_buffer[8]];
......
......@@ -182,7 +182,11 @@ static int Open ( vlc_object_t *p_this )
}
}
asprintf( &psz_vobname, "%s://%s", p_demux->psz_access, p_demux->psz_path );
if( asprintf( &psz_vobname, "%s://%s", p_demux->psz_access, p_demux->psz_path ) == -1 )
{
free( p_sys );
return VLC_EGENERIC;
}
i_len = strlen( psz_vobname );
if( i_len >= 4 ) memcpy( psz_vobname + i_len - 4, ".sub", 4 );
......
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