Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
09debb56
Commit
09debb56
authored
Apr 06, 2009
by
Antoine Cellerier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use image_Mime2Fourcc().
parent
0f19b0dc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
30 deletions
+1
-30
modules/codec/subtitles/subsusf.c
modules/codec/subtitles/subsusf.c
+1
-30
No files found.
modules/codec/subtitles/subsusf.c
View file @
09debb56
...
@@ -460,36 +460,7 @@ static int ParseImageAttachments( decoder_t *p_dec )
...
@@ -460,36 +460,7 @@ static int ParseImageAttachments( decoder_t *p_dec )
{
{
input_attachment_t
*
p_attach
=
pp_attachments
[
k
];
input_attachment_t
*
p_attach
=
pp_attachments
[
k
];
vlc_fourcc_t
type
=
0
;
vlc_fourcc_t
type
=
image_Mime2Fourcc
(
p_attach
->
psz_mime
);
if
(
(
!
strcmp
(
p_attach
->
psz_mime
,
"image/bmp"
)
)
||
/* BMP */
(
!
strcmp
(
p_attach
->
psz_mime
,
"image/x-bmp"
)
)
||
(
!
strcmp
(
p_attach
->
psz_mime
,
"image/x-bitmap"
)
)
||
(
!
strcmp
(
p_attach
->
psz_mime
,
"image/x-ms-bmp"
)
)
)
{
type
=
VLC_FOURCC
(
'b'
,
'm'
,
'p'
,
' '
);
}
else
if
(
(
!
strcmp
(
p_attach
->
psz_mime
,
"image/x-portable-anymap"
)
)
||
/* PNM */
(
!
strcmp
(
p_attach
->
psz_mime
,
"image/x-portable-bitmap"
)
)
||
/* PBM */
(
!
strcmp
(
p_attach
->
psz_mime
,
"image/x-portable-graymap"
)
)
||
/* PGM */
(
!
strcmp
(
p_attach
->
psz_mime
,
"image/x-portable-pixmap"
)
)
)
/* PPM */
{
type
=
VLC_FOURCC
(
'p'
,
'n'
,
'm'
,
' '
);
}
else
if
(
!
strcmp
(
p_attach
->
psz_mime
,
"image/gif"
)
)
/* GIF */
type
=
VLC_FOURCC
(
'g'
,
'i'
,
'f'
,
' '
);
else
if
(
!
strcmp
(
p_attach
->
psz_mime
,
"image/jpeg"
)
)
/* JPG, JPEG */
type
=
VLC_FOURCC
(
'j'
,
'p'
,
'e'
,
'g'
);
else
if
(
!
strcmp
(
p_attach
->
psz_mime
,
"image/pcx"
)
)
/* PCX */
type
=
VLC_FOURCC
(
'p'
,
'c'
,
'x'
,
' '
);
else
if
(
!
strcmp
(
p_attach
->
psz_mime
,
"image/png"
)
)
/* PNG */
type
=
VLC_FOURCC
(
'p'
,
'n'
,
'g'
,
' '
);
else
if
(
!
strcmp
(
p_attach
->
psz_mime
,
"image/tiff"
)
)
/* TIF, TIFF */
type
=
VLC_FOURCC
(
't'
,
'i'
,
'f'
,
'f'
);
else
if
(
!
strcmp
(
p_attach
->
psz_mime
,
"image/x-tga"
)
)
/* TGA */
type
=
VLC_FOURCC
(
't'
,
'g'
,
'a'
,
' '
);
else
if
(
!
strcmp
(
p_attach
->
psz_mime
,
"image/x-xpixmap"
)
)
/* XPM */
type
=
VLC_FOURCC
(
'x'
,
'p'
,
'm'
,
' '
);
if
(
(
type
!=
0
)
&&
if
(
(
type
!=
0
)
&&
(
p_attach
->
i_data
>
0
)
&&
(
p_attach
->
i_data
>
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