[vlc-devel] commit: Subtitles: hide {Y:xxx } like tags (Jean-Baptiste Kempf )

git version control git at videolan.org
Thu Dec 31 00:42:52 CET 2009


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Thu Dec 31 00:42:33 2009 +0100| [6c9ba4dcbca107db0063dc6720819ca31e8760f7] | committer: Jean-Baptiste Kempf 

Subtitles: hide {Y:xxx } like tags

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

 modules/codec/subtitles/subsdec.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/modules/codec/subtitles/subsdec.c b/modules/codec/subtitles/subsdec.c
index a95218e..9d32434 100644
--- a/modules/codec/subtitles/subsdec.c
+++ b/modules/codec/subtitles/subsdec.c
@@ -949,6 +949,12 @@ static char *CreateHtmlSubtitle( int *pi_align, char *psz_subtitle )
             /* Hide {\stupidity} */
             psz_subtitle = strchr( psz_subtitle, '}' ) + 1;
         }
+        else if( psz_subtitle[0] == '{' && psz_subtitle[1] == 'Y'
+                && psz_subtitle[2] == ':' && strchr( psz_subtitle, '}' ) )
+        {
+            /* Hide {Y:stupidity} */
+            psz_subtitle = strchr( psz_subtitle, '}' ) + 1;
+        }
         else
         {
             *psz_html = *psz_subtitle;




More information about the vlc-devel mailing list