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

git version control git at videolan.org
Sat Jan 9 16:06:34 CET 2010


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

Subtitles: hide {Y:xxx } like tags
(cherry picked from commit 6c9ba4dcbca107db0063dc6720819ca31e8760f7)

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc-1.0-bugfix.git/?a=commit;h=c9eb9929c8c3b8ae5738b1339ada35326098d36e
---

 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 ad384d0..beb2e4d 100644
--- a/modules/codec/subtitles/subsdec.c
+++ b/modules/codec/subtitles/subsdec.c
@@ -940,6 +940,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