[vlc-commits] [Git][videolan/vlc][master] 2 commits: subtitle: allow lowercase hex colors
Jean-Baptiste Kempf (@jbk)
gitlab at videolan.org
Fri May 5 06:34:47 UTC 2023
Jean-Baptiste Kempf pushed to branch master at VideoLAN / VLC
Commits:
f6affa76 by Damian Życiński at 2023-05-05T06:13:15+00:00
subtitle: allow lowercase hex colors
- - - - -
3b4307c1 by Damian Życiński at 2023-05-05T06:13:15+00:00
subtitle: allow lowercase hex colors
- - - - -
1 changed file:
- src/misc/text_style.c
Changes:
=====================================
src/misc/text_style.c
=====================================
@@ -478,9 +478,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') )
+ if( psz_hex != psz_value || isxdigit(*psz_hex) )
{
uint32_t i_value = (uint32_t)strtoul( psz_hex, &psz_end, 16 );
if( *psz_end == 0 || isspace( *psz_end ) )
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/5fd6445a4a87398000ff8593aa47a88749c74960...3b4307c1432bd8c2a58015f9e80fb187fe1bee5b
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/5fd6445a4a87398000ff8593aa47a88749c74960...3b4307c1432bd8c2a58015f9e80fb187fe1bee5b
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance
More information about the vlc-commits
mailing list