]> git.sesse.net Git - vlc/commitdiff
Convert EIT-coded CR/LFs to '\n'.
authorMarian Ďurkovič <md@bts.sk>
Wed, 23 Sep 2009 08:33:01 +0000 (10:33 +0200)
committerMarian Ďurkovič <md@bts.sk>
Wed, 23 Sep 2009 08:33:01 +0000 (10:33 +0200)
modules/demux/ts.c

index ade236734a479fa7eae970b02b8affb6b78dcbaf..31e05c00e8486c544230518d19903b9763d907ac 100644 (file)
@@ -2706,13 +2706,14 @@ static char *EITConvertToUTF8( const unsigned char *psz_instring,
 
         *psz_out = '\0';
 
-        /* Replace EIT-coded CR/LFs by spaces */
+        /* Convert EIT-coded CR/LFs */
         unsigned char *pbuf = (unsigned char *)psz_outstring;
         for( ; pbuf < (unsigned char *)psz_out ; pbuf++)
         {
             if( pbuf[0] == 0xc2 && pbuf[1] == 0x8a )
             {
-                pbuf[0] = pbuf[1] = ' ';
+                pbuf[0] = ' ';
+                pbuf[1] = '\n';
             }
         }