From 1fe2561ed181a973d3a022deaf77c6fa9f8dbd01 Mon Sep 17 00:00:00 2001 From: eugeni Date: Mon, 10 Jul 2006 23:58:24 +0000 Subject: [PATCH] Support some recently discovered color formats. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19008 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libass/ass_utils.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libass/ass_utils.c b/libass/ass_utils.c index 7b381d3d38..9640ead014 100644 --- a/libass/ass_utils.c +++ b/libass/ass_utils.c @@ -39,13 +39,13 @@ int strtocolor(char** q, uint32_t* res) char* p = *q; if (*p == '&') ++p; - else mp_msg(MSGT_GLOBAL, MSGL_V, "bad color: \"%s\"\n", p); + else mp_msg(MSGT_GLOBAL, MSGL_DBG2, "suspicious color format: \"%s\"\n", p); - if (*p == 'H') { + if (*p == 'H' || *p == 'h') { ++p; result = mystrtou32(&p, 16, &color); } else { - result = mystrtou32(&p, 10, &color); + result = mystrtou32(&p, 0, &color); } {