changeset 19550:ec7090509b38

Zero fill ass_settings_t before use.
author eugeni
date Sun, 27 Aug 2006 10:57:29 +0000
parents 5680696f964b
children 4186a45ce6c8
files libmpcodecs/vf_ass.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/vf_ass.c	Sun Aug 27 08:10:07 2006 +0000
+++ b/libmpcodecs/vf_ass.c	Sun Aug 27 10:57:29 2006 +0000
@@ -74,6 +74,7 @@
 	vf->priv->dirty_rows = malloc(vf->priv->outh);
 	
 	if (vf->priv->ass_priv) {
+		memset(&settings, 0, sizeof(ass_settings_t));
 		settings.frame_width = vf->priv->outw;
 		settings.frame_height = vf->priv->outh;
 		settings.font_size_coeff = ass_font_scale;