[vlc-commits] [Git][videolan/vlc][3.0.x] 2 commits: subtitle: allow lowercase hex colors
Jean-Baptiste Kempf (@jbk)
gitlab at videolan.org
Sat May 6 11:12:11 UTC 2023
Jean-Baptiste Kempf pushed to branch 3.0.x at VideoLAN / VLC
Commits:
1e6c6a74 by Damian Życiński at 2023-05-05T11:19:19+02:00
subtitle: allow lowercase hex colors
(cherry picked from commit f6affa762fd3238b78d80705f2dc8832c0442f72)
Signed-off-by: Steve Lhomme <robux4 at ycbcr.xyz>
- - - - -
9c1c1edb by Damian Życiński at 2023-05-05T11:19:26+02:00
subtitle: allow lowercase hex colors
(cherry picked from commit 3b4307c1432bd8c2a58015f9e80fb187fe1bee5b)
Signed-off-by: Steve Lhomme <robux4 at ycbcr.xyz>
- - - - -
1 changed file:
- src/misc/text_style.c
Changes:
=====================================
src/misc/text_style.c
=====================================
@@ -242,9 +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') )
+ 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 ) )
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/ed4a65e64f07bfe2464d8c13d5e8e14bd0c9cae0...9c1c1edb451403e81650dfd249a3084c1acb9c64
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/ed4a65e64f07bfe2464d8c13d5e8e14bd0c9cae0...9c1c1edb451403e81650dfd249a3084c1acb9c64
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