Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
0fbeeb3e
Commit
0fbeeb3e
authored
Jun 12, 2015
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fourcc: improve duplicate error message
parent
6b8e952e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
+5
-7
src/misc/fourcc_gen.c
src/misc/fourcc_gen.c
+5
-7
No files found.
src/misc/fourcc_gen.c
View file @
0fbeeb3e
...
...
@@ -92,16 +92,14 @@ static void process_list(const char *name, const staticentry_t *list, size_t n)
size_t
dups
=
0
;
for
(
size_t
i
=
1
;
i
<
n
;
i
++
)
if
(
!
memcmp
(
entries
[
i
-
1
].
alias
,
entries
[
i
].
alias
,
4
)
&&
memcmp
(
entries
[
i
-
1
].
fourcc
,
entries
[
i
].
fourcc
,
4
))
{
if
(
!
memcmp
(
entries
[
i
].
fourcc
,
entries
[
i
].
alias
,
4
))
continue
;
if
(
!
memcmp
(
entries
[
i
-
1
].
alias
,
entries
[
i
].
alias
,
4
))
{
fprintf
(
stderr
,
"Error: FourCC
\"
%.4s
\"
(alias of
\"
%.4s
\"
) "
"duplicated!
\n
"
,
entries
[
i
].
alias
,
entries
[
i
].
fourcc
);
fprintf
(
stderr
,
"Error: FourCC alias
\"
%.4s
\"
conflict: "
"
\"
%.4s
\"
and
\"
%.4s
\"\n
"
,
entries
[
i
].
alias
,
entries
[
i
-
1
].
fourcc
,
entries
[
i
].
fourcc
);
dups
++
;
}
}
if
(
dups
>
0
)
exit
(
1
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment