[vlc-devel] [PATCH] demux ts: fix EITConvertToUTF8 to deal with no longer broken providers (fix #7537)

Francois Cartegnie fcvlcdev at free.fr
Tue Oct 2 17:51:09 CEST 2012


---
 modules/demux/ts.c |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/modules/demux/ts.c b/modules/demux/ts.c
index d5583d8..19970ac 100644
--- a/modules/demux/ts.c
+++ b/modules/demux/ts.c
@@ -2498,6 +2498,13 @@ static char *EITConvertToUTF8( const unsigned char *psz_instring,
                                size_t i_length,
                                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 )
         return FromCharset( "ISO_8859-1", psz_instring, i_length );
     return vlc_from_EIT( psz_instring, i_length );
-- 
1.7.6




More information about the vlc-devel mailing list