Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VLC
Manage
Activity
Members
Labels
Plan
Issues
4k
Issue boards
Milestones
Code
Merge requests
442
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VideoLAN
VLC
Merge requests
!3637
[3.0] subtitle: allow lowercase hex colors
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
[3.0] subtitle: allow lowercase hex colors
robUx4/vlc:30-html-case
into
3.0.x
Overview
1
Commits
2
Pipelines
1
Changes
1
Merged
Steve Lhomme
requested to merge
robUx4/vlc:30-html-case
into
3.0.x
1 year ago
Overview
1
Commits
2
Pipelines
1
Changes
1
Expand
Backport of
!3559 (merged)
0
0
Merge request reports
Compare
3.0.x
3.0.x (base)
and
latest version
latest version
9c1c1edb
2 commits,
1 year ago
1 file
+
1
−
3
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
src/misc/text_style.c
+
1
−
3
Options
@@ -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
)
)
Loading