diff options
author | greg <greg@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2009-03-05 20:36:48 +0000 |
---|---|---|
committer | greg <greg@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2009-03-05 20:36:48 +0000 |
commit | daf40d0368f5c99e1531e35f0ef9e821a712a06f (patch) | |
tree | f379d6a5d0dec1243e5c2ece57a23b11e00ea844 /libass/ass_utils.c | |
parent | eef7ca24e810cb6f1bff983a2e77ece313893cb8 (diff) | |
download | libass-daf40d0368f5c99e1531e35f0ef9e821a712a06f.tar.bz2 libass-daf40d0368f5c99e1531e35f0ef9e821a712a06f.tar.xz |
Support ScaledBorderAndShadow property.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28820 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libass/ass_utils.c')
-rw-r--r-- | libass/ass_utils.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/libass/ass_utils.c b/libass/ass_utils.c index 25e4d4f..7f728f1 100644 --- a/libass/ass_utils.c +++ b/libass/ass_utils.c @@ -96,6 +96,17 @@ int strtocolor(char** q, uint32_t* res) return result; } +// Return a boolean value for a string +char parse_bool(char* str) { + while (*str == ' ' || *str == '\t') + str++; + if (!strncasecmp(str, "yes", 3)) + return 1; + else if (strtol(str, NULL, 10) > 0) + return 1; + return 0; +} + #if 0 static void sprint_tag(uint32_t tag, char* dst) { |