[vlc-commits] TTML decoder: Fix background display

Stanislas Plessia git at videolan.org
Mon Jul 25 18:11:15 CEST 2016


vlc | branch: master | Stanislas Plessia <stan at videolabs.io> | Fri Jul 22 17:29:42 2016 +0200| [216bb4c18eda8ff5ecb7957693aa7a0421e79d12] | committer: Jean-Baptiste Kempf

TTML decoder: Fix background display

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

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

 modules/codec/substtml.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/codec/substtml.c b/modules/codec/substtml.c
index c900c94..ddc846a 100644
--- a/modules/codec/substtml.c
+++ b/modules/codec/substtml.c
@@ -198,6 +198,7 @@ static void ParseTTMLStyle( decoder_t *p_dec, xml_reader_t* p_reader )
             p_ttml_style->font_style->i_background_alpha = (i_color & 0xFF000000) >> 24;
             p_ttml_style->font_style->i_features |= STYLE_HAS_BACKGROUND_COLOR
                                                       | STYLE_HAS_BACKGROUND_ALPHA;
+            p_ttml_style->font_style->i_style_flags |= STYLE_BACKGROUND;
         }
         else if ( !strcasecmp( "tts:textAlign", attr ) )
         {



More information about the vlc-commits mailing list