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
a1ebfadd
Commit
a1ebfadd
authored
May 25, 2010
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MP4: support numerous unusual metadata as extra_metadata
parent
e12f10f7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
19 deletions
+33
-19
modules/demux/mp4/mp4.c
modules/demux/mp4/mp4.c
+33
-19
No files found.
modules/demux/mp4/mp4.c
View file @
a1ebfadd
...
...
@@ -937,28 +937,42 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
SET
(
vlc_meta_SetEncodedBy
);
break
;
case
FOURCC_0xa9wrt
:
/* Writer */
case
FOURCC_0xa9com
:
/* Composer */
case
FOURCC_0xa9swr
:
case
FOURCC_0xa9inf
:
/* Information */
case
FOURCC_0xa9dir
:
/* Director */
case
FOURCC_0xa9dis
:
/* Disclaimer */
case
FOURCC_0xa9req
:
/* Requirements */
case
FOURCC_0xa9fmt
:
/* Original Format */
case
FOURCC_0xa9dsa
:
/* Display Source As */
case
FOURCC_0xa9hst
:
/* Host Computer */
case
FOURCC_0xa9prd
:
/* Producer */
case
FOURCC_0xa9prf
:
/* Performers */
case
FOURCC_0xa9ope
:
/* Original Performer */
case
FOURCC_0xa9src
:
/* Providers Source Content */
case
FOURCC_WLOC
:
/* Window Location */
/* TODO one day, but they aren't really meaningfull */
break
;
#undef SET
default:
break
;
}
#undef SET
static
const
struct
{
uint32_t
xa9_type
;
char
metadata
[
25
];
}
xa9typetoextrameta
[]
=
{
{
FOURCC_0xa9wrt
,
N_
(
"Writer"
)
},
{
FOURCC_0xa9com
,
N_
(
"Composr"
)
},
{
FOURCC_0xa9prd
,
N_
(
"Producer"
)
},
{
FOURCC_0xa9inf
,
N_
(
"Information"
)
},
{
FOURCC_0xa9swr
,
N_
(
"Software"
)
},
{
FOURCC_0xa9dir
,
N_
(
"Director"
)
},
{
FOURCC_0xa9dis
,
N_
(
"Disclaimer"
)
},
{
FOURCC_0xa9req
,
N_
(
"Requirements"
)
},
{
FOURCC_0xa9fmt
,
N_
(
"Original Format"
)
},
{
FOURCC_0xa9dsa
,
N_
(
"Display Source As"
)
},
{
FOURCC_0xa9hst
,
N_
(
"Host Computer"
)
},
{
FOURCC_0xa9prf
,
N_
(
"Performers"
)
},
{
FOURCC_0xa9ope
,
N_
(
"Original Performer"
)
},
{
FOURCC_0xa9src
,
N_
(
"Providers Source Content"
)
},
{
0
,
""
},
};
for
(
unsigned
i
=
0
;
xa9typetoextrameta
[
i
].
xa9_type
;
i
++
)
{
if
(
p_0xa9xxx
->
i_type
==
xa9typetoextrameta
[
i
].
xa9_type
)
{
char
*
psz_utf
=
strdup
(
p_0xa9xxx
->
data
.
p_0xa9xxx
->
psz_text
?
p_0xa9xxx
->
data
.
p_0xa9xxx
->
psz_text
:
""
);
if
(
psz_utf
)
{
EnsureUTF8
(
psz_utf
);
vlc_meta_AddExtra
(
p_meta
,
_
(
xa9typetoextrameta
[
i
].
metadata
),
psz_utf
);
free
(
psz_utf
);
}
break
;
}
}
}
return
VLC_SUCCESS
;
}
...
...
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