[vlc-commits] codecs: subsusf: remove handling of karaoke style

Francois Cartegnie git at videolan.org
Thu Jul 4 10:23:36 CEST 2019


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Mon Jul  1 18:25:22 2019 +0200| [65c1ff8d85f6cec06eae671a863e45badf204c40] | committer: Francois Cartegnie

codecs: subsusf: remove handling of karaoke style

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

 modules/codec/subsusf.c | 11 -----------
 1 file changed, 11 deletions(-)

diff --git a/modules/codec/subsusf.c b/modules/codec/subsusf.c
index 20eab12ed2..44248ff664 100644
--- a/modules/codec/subsusf.c
+++ b/modules/codec/subsusf.c
@@ -749,17 +749,6 @@ static void ParseUSFHeaderTags( decoder_t *p_dec, xml_reader_t *p_xml_reader )
                         {
                             p_ssa_style->p_style->i_shadow_width = atoi( val );
                         }
-                        else if( !strcasecmp( "back-color", attr ) )
-                        {
-                            if( *val == '#' )
-                            {
-                                unsigned long col = strtol(val+1, NULL, 16);
-                                p_ssa_style->p_style->i_karaoke_background_color = (col & 0x00ffffff);
-                                p_ssa_style->p_style->i_karaoke_background_alpha = (col >> 24) & 0xff;
-                                p_ssa_style->p_style->i_features |= STYLE_HAS_K_BACKGROUND_COLOR
-                                                                  | STYLE_HAS_K_BACKGROUND_ALPHA;
-                            }
-                        }
                         else if( !strcasecmp( "spacing", attr ) )
                         {
                             p_ssa_style->p_style->i_spacing = atoi( val );



More information about the vlc-commits mailing list