Commit e82b763a authored by Francois Cartegnie's avatar Francois Cartegnie

demux ts: fix EITConvertToUTF8 to deal with no longer broken providers

(fix #7537)
parent ebea6779
...@@ -2498,6 +2498,13 @@ static char *EITConvertToUTF8( const unsigned char *psz_instring, ...@@ -2498,6 +2498,13 @@ static char *EITConvertToUTF8( const unsigned char *psz_instring,
size_t i_length, size_t i_length,
bool b_broken ) bool b_broken )
{ {
/* Deal with no longer broken providers (no switch byte
but sending ISO_8859-1 instead of ISO_6937) without
removing them from the broken providers table
(keep the entry for correctly handling recorded TS).
*/
b_broken = b_broken && i_length && *psz_instring > 0x20;
if( b_broken ) if( b_broken )
return FromCharset( "ISO_8859-1", psz_instring, i_length ); return FromCharset( "ISO_8859-1", psz_instring, i_length );
return vlc_from_EIT( psz_instring, i_length ); return vlc_from_EIT( psz_instring, i_length );
......
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