[MPlayer-cvslog] r19008 - trunk/libass/ass_utils.c

eugeni subversion at mplayerhq.hu
Tue Jul 11 01:58:24 CEST 2006


Author: eugeni
Date: Tue Jul 11 01:58:24 2006
New Revision: 19008

Modified:
   trunk/libass/ass_utils.c

Log:
Support some recently discovered color formats.


Modified: trunk/libass/ass_utils.c
==============================================================================
--- trunk/libass/ass_utils.c	(original)
+++ trunk/libass/ass_utils.c	Tue Jul 11 01:58:24 2006
@@ -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);
 	}
 	
 	{



More information about the MPlayer-cvslog mailing list