diff options
author | eugeni <eugeni@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2009-02-27 23:06:43 +0000 |
---|---|---|
committer | eugeni <eugeni@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2009-02-27 23:06:43 +0000 |
commit | e3da71a5b792bd7373d2452bfd14d87c2f78a0e0 (patch) | |
tree | 1fba6e9068f4845bd7416e414cc983e4292e956b /libass | |
parent | 80f88cf51425afa469145aa8063839c6be189ea6 (diff) | |
download | libass-e3da71a5b792bd7373d2452bfd14d87c2f78a0e0.tar.bz2 libass-e3da71a5b792bd7373d2452bfd14d87c2f78a0e0.tar.xz |
Fix two gcc warnings.
Patch by Grigori G (greg chown ath cx).
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28751 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libass')
-rw-r--r-- | libass/ass_render.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libass/ass_render.c b/libass/ass_render.c index 6e3bb403..d083eef0 100644 --- a/libass/ass_render.c +++ b/libass/ass_render.c @@ -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* event, event_images_t* event_images) 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; |