]> granicus.if.org Git - libass/commitdiff
Fix two gcc warnings.
authoreugeni <eugeni@b3059339-0415-0410-9bf9-f77b7e298cf2>
Fri, 27 Feb 2009 23:06:43 +0000 (23:06 +0000)
committereugeni <eugeni@b3059339-0415-0410-9bf9-f77b7e298cf2>
Fri, 27 Feb 2009 23:06:43 +0000 (23:06 +0000)
Patch by Grigori G (greg chown ath cx).

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28751 b3059339-0415-0410-9bf9-f77b7e298cf2

libass/ass_render.c

index 6e3bb4034b88546f5698f84eb0314723ee3ea53a..d083eef07c57092bd5f7c91092343c8a1f577f34 100644 (file)
@@ -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;