]> git.sesse.net Git - vlc/commitdiff
Subtitles: hide {Y:xxx } like tags
authorJean-Baptiste Kempf <jb@videolan.org>
Wed, 30 Dec 2009 23:42:33 +0000 (00:42 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Wed, 30 Dec 2009 23:42:33 +0000 (00:42 +0100)
modules/codec/subtitles/subsdec.c

index a95218e9d25c6ab6a7b00ea18b9edff1d08ca38a..9d32434c8012be5fef9ee6301c32837d32e3a07c 100644 (file)
@@ -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;