[vlc-commits] [Git][videolan/vlc][master] codec: cea708: initialize text row styles

Felix Paul Kühne (@fkuehne) gitlab at videolan.org
Sun Sep 13 13:58:43 UTC 2026



Felix Paul Kühne pushed to branch master at VideoLAN / VLC


Commits:
289a425a by Dhananjay Jha at 2026-09-13T15:36:44+02:00
codec: cea708: initialize text row styles

- - - - -


1 changed file:

- modules/codec/cea708.c


Changes:

=====================================
modules/codec/cea708.c
=====================================
@@ -373,6 +373,8 @@ struct cea708_text_row_t
     uint8_t lastcol;
 };
 
+static const cea708_pen_style_t cea708_default_pen_styles[CEA708_PREDEFINED_STYLES];
+
 static void cea708_text_row_Delete( cea708_text_row_t *p_row )
 {
     free( p_row );
@@ -386,6 +388,8 @@ static cea708_text_row_t * cea708_text_row_New( void )
         p_row->firstcol = CEA708_WINDOW_MAX_COLS;
         p_row->lastcol = 0;
         memset(p_row->characters, 0, 4 * CEA708_WINDOW_MAX_COLS);
+        for( size_t i = 0; i < ARRAY_SIZE(p_row->styles); i++ )
+            p_row->styles[i] = cea708_default_pen_styles[0];
     }
     return p_row;
 }



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/289a425a89e36f3af8dae040259bbe27dc801b15

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/289a425a89e36f3af8dae040259bbe27dc801b15
You're receiving this email because of your account on code.videolan.org. Manage all notifications: https://code.videolan.org/-/profile/notifications | Help: https://code.videolan.org/help




More information about the vlc-commits mailing list