[vlc-commits] codec: cc: fix regression with backgrounds

Francois Cartegnie git at videolan.org
Thu Dec 8 17:00:41 CET 2016


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Thu Dec  8 16:59:41 2016 +0100| [c351a47861e5504b973d97173a242f098fa9230d] | committer: Francois Cartegnie

codec: cc: fix regression with backgrounds

following freetype changes

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

 modules/codec/cc.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/modules/codec/cc.c b/modules/codec/cc.c
index 3b61c94..d78bb3b 100644
--- a/modules/codec/cc.c
+++ b/modules/codec/cc.c
@@ -441,7 +441,11 @@ static subpicture_t *Subtitle( decoder_t *p_dec, text_segment_t *p_segments, mti
     /* Set style defaults (will be added to segments if none set) */
     p_spu_sys->p_default_style->i_style_flags |= STYLE_MONOSPACED;
     if( p_dec->p_sys->b_opaque )
+    {
+        p_spu_sys->p_default_style->i_background_alpha = STYLE_ALPHA_OPAQUE;
+        p_spu_sys->p_default_style->i_features |= STYLE_HAS_BACKGROUND_ALPHA;
         p_spu_sys->p_default_style->i_style_flags |= STYLE_BACKGROUND;
+    }
     p_spu_sys->p_default_style->i_font_color = rgi_eia608_colors[EIA608_COLOR_DEFAULT];
     /* FCC defined "safe area" for EIA-608 captions is 80% of the height of the display */
     p_spu_sys->p_default_style->f_font_relsize = 100 * 8 / 10 / EIA608_SCREEN_ROWS;



More information about the vlc-commits mailing list