Skip to content
Snippets Groups Projects
Commit 9c1c1edb authored by Damian Życiński's avatar Damian Życiński Committed by Steve Lhomme
Browse files

subtitle: allow lowercase hex colors


(cherry picked from commit 3b4307c1)

Signed-off-by: default avatarSteve Lhomme <robux4@ycbcr.xyz>
parent 1e6c6a74
No related branches found
No related tags found
1 merge request!3637[3.0] subtitle: allow lowercase hex colors
Pipeline #340823 passed with stages
in 15 minutes and 57 seconds
......@@ -242,10 +242,7 @@ unsigned int vlc_html_color( const char *psz_value, bool* ok )
const char *psz_hex = (*psz_value == '#') ? psz_value + 1 : psz_value;
if( psz_hex != psz_value ||
(*psz_hex >= '0' && *psz_hex <= '9') ||
(*psz_hex >= 'A' && *psz_hex <= 'F') ||
(*psz_hex >= 'a' && *psz_hex <= 'f') )
if( psz_hex != psz_value || isxdigit(*psz_hex) )
{
uint32_t i_value = strtol( psz_hex, &psz_end, 16 );
if( *psz_end == 0 || isspace( *psz_end ) )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment