Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Gautam Chitnis
web-ui-redesign
Commits
8e305e1b
Commit
8e305e1b
authored
Apr 06, 2009
by
Antoine Cellerier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't reinvent strcasecmp().
parent
09debb56
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
9 deletions
+2
-9
src/misc/image.c
src/misc/image.c
+2
-9
No files found.
src/misc/image.c
View file @
8e305e1b
...
...
@@ -549,15 +549,8 @@ vlc_fourcc_t image_Type2Fourcc( const char *psz_type )
int
i
;
for
(
i
=
0
;
ext_table
[
i
].
i_codec
;
i
++
)
{
int
j
;
for
(
j
=
0
;
toupper
(
ext_table
[
i
].
psz_ext
[
j
])
==
toupper
(
psz_type
[
j
]);
j
++
)
{
if
(
!
ext_table
[
i
].
psz_ext
[
j
]
&&
!
psz_type
[
j
]
)
return
ext_table
[
i
].
i_codec
;
}
}
if
(
!
strcasecmp
(
ext_table
[
i
].
psz_ext
,
psz_type
)
)
return
ext_table
[
i
].
i_codec
;
return
0
;
}
...
...
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