summaryrefslogtreecommitdiffstats
path: root/libass/ass.c
diff options
context:
space:
mode:
authorGrigori Goronzy <greg@blackbox>2009-08-12 06:20:26 +0200
committerGrigori Goronzy <greg@blackbox>2009-08-12 06:20:26 +0200
commit8a9ef5e2014068a348cb3e0f965113a827d93cd7 (patch)
treee94067b5011b2b4ce251dc5f2348022667fd3eb6 /libass/ass.c
parente8032bc820dd0079db103165cf3d4d84f429edb7 (diff)
downloadlibass-8a9ef5e2014068a348cb3e0f965113a827d93cd7.tar.bz2
libass-8a9ef5e2014068a348cb3e0f965113a827d93cd7.tar.xz
Always parse colors as hex for ASS tracks
According to the ASS specification, colors can only be specified in hex. Modify the color parsing accordingly; this especially means that colors where the hex sigil (the "H") is missing can now be parsed.
Diffstat (limited to 'libass/ass.c')
-rw-r--r--libass/ass.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libass/ass.c b/libass/ass.c
index 6c28a97..057a6e3 100644
--- a/libass/ass.c
+++ b/libass/ass.c
@@ -198,7 +198,7 @@ static int lookup_style(ASS_Track *track, char *name)
static uint32_t string2color(ASS_Library *library, char *p)
{
uint32_t tmp;
- (void) strtocolor(library, &p, &tmp);
+ (void) strtocolor(library, &p, &tmp, 0);
return tmp;
}