]> granicus.if.org Git - libass/commitdiff
Zerofill libass static variables during initialization.
authoreugeni <eugeni@b3059339-0415-0410-9bf9-f77b7e298cf2>
Sat, 14 Oct 2006 14:42:23 +0000 (14:42 +0000)
committereugeni <eugeni@b3059339-0415-0410-9bf9-f77b7e298cf2>
Sat, 14 Oct 2006 14:42:23 +0000 (14:42 +0000)
Patch by Jindrich Makovicka <makovick a gmail d com>.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20208 b3059339-0415-0410-9bf9-f77b7e298cf2

libass/ass_render.c

index 4fa53a0f08db61fd9d119a94f446f47a15b0a473..abb27220511617ebcb9067fb382bac648fcba28e 100644 (file)
@@ -220,6 +220,10 @@ ass_instance_t* ass_init(void)
        FT_Library ft;
        ass_instance_t* priv = 0;
        
+       memset(&render_context, 0, sizeof(render_context));
+       memset(&frame_context, 0, sizeof(frame_context));
+       memset(&text_info, 0, sizeof(text_info));
+
        if (font_fontconfig && font_name)
                family = strdup(font_name);