changeset 19003:9dc06456af0f

Support some recently discovered color formats.
author eugeni
date Mon, 10 Jul 2006 23:58:24 +0000
parents da05237044c2
children 1f48182551fd
files libass/ass_utils.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/libass/ass_utils.c	Mon Jul 10 23:57:17 2006 +0000
+++ b/libass/ass_utils.c	Mon Jul 10 23:58:24 2006 +0000
@@ -39,13 +39,13 @@
 	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);
 	}
 	
 	{