summaryrefslogtreecommitdiffstats
path: root/libass/ass_utils.h
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_utils.h
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_utils.h')
-rw-r--r--libass/ass_utils.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libass/ass_utils.h b/libass/ass_utils.h
index 8590bb47..bade5780 100644
--- a/libass/ass_utils.h
+++ b/libass/ass_utils.h
@@ -49,7 +49,7 @@ int mystrtoi(char **p, int *res);
int mystrtoll(char **p, long long *res);
int mystrtou32(char **p, int base, uint32_t *res);
int mystrtod(char **p, double *res);
-int strtocolor(ASS_Library *library, char **q, uint32_t *res);
+int strtocolor(ASS_Library *library, char **q, uint32_t *res, int hex);
char parse_bool(char *str);
unsigned ass_utf8_get_char(char **str);
void ass_msg(ASS_Library *priv, int lvl, char *fmt, ...);