mirror of
https://github.com/mpv-player/mpv
synced 2024-12-18 12:55:16 +00:00
Support some recently discovered color formats.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19008 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
2a6f4c3444
commit
1fe2561ed1
@ -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);
|
||||
}
|
||||
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user