Fix \a parsing broken in r22291
authoruau <uau@b3059339-0415-0410-9bf9-f77b7e298cf2>
Fri, 23 Feb 2007 03:08:54 +0000 (03:08 +0000)
committeruau <uau@b3059339-0415-0410-9bf9-f77b7e298cf2>
Fri, 23 Feb 2007 03:08:54 +0000 (03:08 +0000)
git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@22321 b3059339-0415-0410-9bf9-f77b7e298cf2

libass/ass_render.c

index 307bc2a..0944325 100644 (file)
@@ -834,7 +834,7 @@ static char* parse_tag(char* p, double pwr) {
                } else
                        render_context.alignment = render_context.style->Alignment;
        } else if (mystrcmp(&p, "a")) {
-               int val = strtol(p, &p, 10);
+               int val;
                if (mystrtoi(&p, 10, &val) && val)
                        render_context.alignment = val;
                else