[vlc-devel] commit: Convert EIT-coded CR/LFs to '\n'. ( Marian Ďurkovič )

git version control git at videolan.org
Wed Sep 23 10:34:17 CEST 2009


vlc | branch: master | Marian Ďurkovič <md at bts.sk> | Wed Sep 23 10:33:01 2009 +0200| [2d9e847e1c839dcd833ffc83d6732973ad487ba2] | committer: Marian Ďurkovič 

Convert EIT-coded CR/LFs to '\n'.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2d9e847e1c839dcd833ffc83d6732973ad487ba2
---

 modules/demux/ts.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/modules/demux/ts.c b/modules/demux/ts.c
index ade2367..31e05c0 100644
--- a/modules/demux/ts.c
+++ b/modules/demux/ts.c
@@ -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';
             }
         }
 




More information about the vlc-devel mailing list