From: greg Date: Sat, 7 Mar 2009 23:56:03 +0000 (+0000) Subject: Only use first \org in a line. X-Git-Tag: 0.9.7~146 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b80348afd88f8b58e14e51a606ea0cc3479d8312;p=libass Only use first \org in a line. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28873 b3059339-0415-0410-9bf9-f77b7e298cf2 --- diff --git a/libass/ass_render.c b/libass/ass_render.c index 7263413..d3347b6 100644 --- a/libass/ass_render.c +++ b/libass/ass_render.c @@ -1059,10 +1059,12 @@ static char* parse_tag(char* p, double pwr) { skip(')'); mp_msg(MSGT_ASS, MSGL_DBG2, "org(%d, %d)\n", v1, v2); // render_context.evt_type = EVENT_POSITIONED; - render_context.org_x = v1; - render_context.org_y = v2; - render_context.have_origin = 1; - render_context.detect_collisions = 0; + if (!render_context.have_origin) { + render_context.org_x = v1; + render_context.org_y = v2; + render_context.have_origin = 1; + render_context.detect_collisions = 0; + } } else if (mystrcmp(&p, "t")) { double v[3]; int v1, v2;