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

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


Author: eugeni
Date: Sat Feb 28 00:06:43 2009
New Revision: 28751

Log:
Fix two gcc warnings.

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:40 2009	(r28750)
+++ trunk/libass/ass_render.c	Sat Feb 28 00:06:43 2009	(r28751)
@@ -1144,7 +1144,7 @@ static unsigned get_next_char(char** str
 			return ' ';
 		}
 	}
-	chr = utf8_get_char(&p);
+	chr = utf8_get_char((const char **)&p);
 	*str = p;
 	return chr;
 }
@@ -2043,7 +2043,7 @@ static int ass_render_event(ass_event_t*
 			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;



More information about the MPlayer-cvslog mailing list