From: Laurent Aimar Date: Wed, 18 May 2005 15:50:50 +0000 (+0000) Subject: * ts: fixed EITEventFixString. X-Git-Tag: 0.8.2~179 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=208ffddccdedf24edd7b542c80fb1cb963781545;p=vlc * ts: fixed EITEventFixString. --- diff --git a/modules/demux/ts.c b/modules/demux/ts.c index 0c3112041f..bd13ff8fd6 100644 --- a/modules/demux/ts.c +++ b/modules/demux/ts.c @@ -2114,12 +2114,12 @@ static void DecodeMjd( int i_mjd, int *p_y, int *p_m, int *p_d ) } } #endif -static void EITEventFixString( char *psz ) +static void EITEventFixString( unsigned char *psz ) { int i_len; /* Sometimes the first char isn't a normal char but designed * caracters encoding, for now lets skip it */ - if( isalnum(psz[0]) ) + if( psz[0] >= 0x20 ) return; if( ( i_len = strlen( psz ) ) > 0 ) memmove( &psz[0], &psz[1], i_len ); /* Copy the \0 too */