diff options
author | Grigori Goronzy <greg@blackbox> | 2009-08-12 06:20:26 +0200 |
---|---|---|
committer | Grigori Goronzy <greg@blackbox> | 2009-08-12 06:20:26 +0200 |
commit | 8a9ef5e2014068a348cb3e0f965113a827d93cd7 (patch) | |
tree | e94067b5011b2b4ce251dc5f2348022667fd3eb6 /libass/ass.c | |
parent | e8032bc820dd0079db103165cf3d4d84f429edb7 (diff) | |
download | libass-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libass/ass.c b/libass/ass.c index 6c28a973..057a6e34 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; } |