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
eef284f3
Commit
eef284f3
authored
May 22, 2008
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Workaround f*cked up iTunes
parent
9298671d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
modules/meta_engine/taglib.cpp
modules/meta_engine/taglib.cpp
+6
-5
No files found.
modules/meta_engine/taglib.cpp
View file @
eef284f3
...
...
@@ -124,21 +124,22 @@ static void DetectImage( FileRef f, demux_t *p_demux )
ByteVector
p_data_taglib
;
const
char
*
p_data
;
int
i_data
;
psz_mime
=
p_apic
->
mimeType
().
toCString
(
true
);
psz_description
=
psz_name
=
p_apic
->
description
().
toCString
(
true
);
/* some old iTunes version not only sets incorrectly the mime type
* or the description of the image,
* but also embeds incorrectly the image.
* Recent versions seem to behave correctly */
if
(
!
strncmp
(
psz_mime
,
"PNG"
,
3
)
)
if
(
!
strncmp
(
psz_mime
,
"PNG"
,
3
)
||
!
strncmp
(
psz_name
,
"
\xC2\x89
PNG"
,
5
)
)
{
msg_Warn
(
p_demux
,
"%s: Invalid picture embedded by broken iTunes version"
,
"%s: Invalid picture embedded by broken iTunes version, "
"you really shouldn't use this crappy software."
,
f
.
file
()
->
name
()
);
break
;
}
psz_description
=
p_apic
->
description
().
toCString
(
true
);
psz_name
=
psz_description
;
p_data_taglib
=
p_apic
->
picture
();
p_data
=
p_data_taglib
.
data
();
i_data
=
p_data_taglib
.
size
();
...
...
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