Fix \a parsing broken in r22291

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22321 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
uau 2007-02-23 03:08:54 +00:00
parent a8007d3c44
commit 0a02ca6ec3
1 changed files with 1 additions and 1 deletions

View 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