[vlc-devel] commit: EPG: Catch a replace EIT-coded CR/LFs ( Marian Ďurkovič )
git version control
git at videolan.org
Mon Sep 14 12:04:58 CEST 2009
vlc | branch: master | Marian Ďurkovič <md at bts.sk> | Mon Sep 14 12:04:27 2009 +0200| [a11941c5d3d0baef47185295bc8e3c8dec3a428a] | committer: Marian Ďurkovič
EPG: Catch a replace EIT-coded CR/LFs
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a11941c5d3d0baef47185295bc8e3c8dec3a428a
---
modules/demux/ts.c | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/modules/demux/ts.c b/modules/demux/ts.c
index 6704d4e..ade2367 100644
--- a/modules/demux/ts.c
+++ b/modules/demux/ts.c
@@ -2705,6 +2705,18 @@ static char *EITConvertToUTF8( const unsigned char *psz_instring,
vlc_iconv_close( iconv_handle );
*psz_out = '\0';
+
+ /* Replace EIT-coded CR/LFs by spaces */
+ 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] = ' ';
+ }
+ }
+
+
}
return psz_outstring;
}
More information about the vlc-devel
mailing list