[MPlayer-cvslog] r28754 - trunk/libass/ass_render.c

eugeni subversion at mplayerhq.hu
Sat Feb 28 00:06:54 CET 2009


Author: eugeni
Date: Sat Feb 28 00:06:53 2009
New Revision: 28754

Log:
Zero-fill glyph_info_t before use.

Patch by Grigori G (greg chown ath cx).

Modified:
   trunk/libass/ass_render.c

Modified: trunk/libass/ass_render.c
==============================================================================
--- trunk/libass/ass_render.c	Sat Feb 28 00:06:50 2009	(r28753)
+++ trunk/libass/ass_render.c	Sat Feb 28 00:06:53 2009	(r28754)
@@ -1310,7 +1310,7 @@ static void get_outline_glyph(int symbol
 	key.italic = render_context.italic;
 	key.outline = render_context.border * 0xFFFF;
 
-	info->glyph = info->outline_glyph = 0;
+	memset(info, 0, sizeof(glyph_info_t));
 
 	val = cache_find_glyph(&key);
 	if (val) {



More information about the MPlayer-cvslog mailing list