[vlc-devel] commit: Added more providers using broken encoding for SDT/EIT (ts). ( Laurent Aimar )
git version control
git at videolan.org
Sun Jan 31 12:23:44 CET 2010
vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Sun Jan 31 12:11:50 2010 +0100| [bcc064f2de824fd90c87d65ad93d284665618b72] | committer: Laurent Aimar
Added more providers using broken encoding for SDT/EIT (ts).
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=bcc064f2de824fd90c87d65ad93d284665618b72
---
modules/demux/ts.c | 19 ++++++++++++++++---
1 files changed, 16 insertions(+), 3 deletions(-)
diff --git a/modules/demux/ts.c b/modules/demux/ts.c
index 8631165..b073160 100644
--- a/modules/demux/ts.c
+++ b/modules/demux/ts.c
@@ -2830,9 +2830,22 @@ static void SDTCallBack( demux_t *p_demux, dvbpsi_sdt_t *p_sdt )
if( p_sdt->i_network_id == 133 )
p_sys->b_broken_charset = true; /* SKY DE & BetaDigital use ISO8859-1 */
- else if( (pD->i_service_provider_name_length == 4) &&
- !strncmp(pD->i_service_provider_name, "CSAT", 4) )
- p_sys->b_broken_charset = true; /* CanalSat FR uses ISO8859-1 */
+
+ /* List of providers using ISO8859-1 */
+ static const char ppsz_broken_providers[][8] = {
+ "CSAT", /* CanalSat FR */
+ "GR1", /* France televisions */
+ "MULTI4", /* NT1 */
+ "MR5", /* France 2/M6 HD */
+ ""
+ };
+ for( int i = 0; *ppsz_broken_providers[i]; i++ )
+ {
+ const size_t i_length = strlen(ppsz_broken_providers[i]);
+ if( pD->i_service_provider_name_length == i_length &&
+ !strncmp( pD->i_service_provider_name, ppsz_broken_providers[i], i_length ) )
+ p_sys->b_broken_charset = true;
+ }
/* FIXME: Digital+ ES also uses ISO8859-1 */
More information about the vlc-devel
mailing list