diff libass/ass_render.c @ 28716:0a8b23440a61

Fix two gcc warnings. Patch by Grigori G (greg chown ath cx).
author eugeni
date Fri, 27 Feb 2009 23:06:43 +0000
parents e758bf5350ee
children 7bbe6626f0e0
line wrap: on
line diff
--- a/libass/ass_render.c	Fri Feb 27 23:06:40 2009 +0000
+++ b/libass/ass_render.c	Fri Feb 27 23:06:43 2009 +0000
@@ -1144,7 +1144,7 @@
 			return ' ';
 		}
 	}
-	chr = utf8_get_char(&p);
+	chr = utf8_get_char((const char **)&p);
 	*str = p;
 	return chr;
 }
@@ -2043,7 +2043,7 @@
 			center.x = x2scr(render_context.org_x);
 			center.y = y2scr(render_context.org_y);
 		} else {
-			int bx, by;
+			int bx = 0, by = 0;
 			get_base_point(bbox, alignment, &bx, &by);
 			center.x = device_x + bx;
 			center.y = device_y + by;