[vlc-commits] codec: substext: missing check

Francois Cartegnie git at videolan.org
Thu Dec 8 15:47:28 CET 2016


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Thu Dec  8 15:01:58 2016 +0100| [e5d0cba02c044b652a27c784dd1895f285099676] | committer: Francois Cartegnie

codec: substext: missing check

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

 modules/codec/substext.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/codec/substext.h b/modules/codec/substext.h
index ed34d58..2fea88f 100644
--- a/modules/codec/substext.h
+++ b/modules/codec/substext.h
@@ -123,7 +123,7 @@ static void SubpictureTextUpdate(subpicture_t *subpic,
             p_segment->style = text_style_Duplicate( sys->p_default_style );
         /* Update all segments font sizes in pixels, *** metric used by renderers *** */
         /* We only do this when a fixed font size isn't set */
-        if( p_segment->style->f_font_relsize && !p_segment->style->i_font_size )
+        if( p_segment->style && p_segment->style->f_font_relsize && !p_segment->style->i_font_size )
         {
             p_segment->style->i_font_size = p_segment->style->f_font_relsize *
                                             subpic->i_original_picture_height / 100;



More information about the vlc-commits mailing list