Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
f774e68d
Commit
f774e68d
authored
Mar 10, 2004
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* mp4.c: more udta informations (title, author, artists).
parent
5c2b06f2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
0 deletions
+37
-0
modules/mux/mp4.c
modules/mux/mp4.c
+37
-0
No files found.
modules/mux/mp4.c
View file @
f774e68d
...
...
@@ -37,6 +37,7 @@
#endif
#include "iso_lang.h"
#include "vlc_meta.h"
/*****************************************************************************
* Module descriptor
...
...
@@ -375,6 +376,7 @@ static int AddStream( sout_mux_t *p_mux, sout_input_t *p_input )
case
VLC_FOURCC
(
'm'
,
'j'
,
'p'
,
'b'
):
case
VLC_FOURCC
(
'S'
,
'V'
,
'Q'
,
'1'
):
case
VLC_FOURCC
(
'S'
,
'V'
,
'Q'
,
'3'
):
case
VLC_FOURCC
(
'h'
,
'2'
,
'6'
,
'4'
):
break
;
default:
msg_Err
(
p_mux
,
"unsupported codec %4.4s in mp4"
,
...
...
@@ -703,6 +705,7 @@ static bo_t *GetUdtaTag( sout_mux_t *p_mux )
{
sout_mux_sys_t
*
p_sys
=
p_mux
->
p_sys
;
bo_t
*
udta
=
box_new
(
"udta"
);
vlc_meta_t
*
p_meta
=
p_mux
->
p_sout
->
p_meta
;
int
i_track
;
/* Requirements */
...
...
@@ -736,6 +739,40 @@ static bo_t *GetUdtaTag( sout_mux_t *p_mux )
box_fix
(
box
);
box_gather
(
udta
,
box
);
}
if
(
p_meta
)
{
int
i
;
for
(
i
=
0
;
i
<
p_meta
->
i_meta
;
i
++
)
{
bo_t
*
box
=
NULL
;
if
(
!
strcmp
(
p_meta
->
name
[
i
],
VLC_META_TITLE
)
)
{
box
=
box_new
(
"
\251
nam"
);
}
else
if
(
!
strcmp
(
p_meta
->
name
[
i
],
VLC_META_AUTHOR
)
)
{
box
=
box_new
(
"
\251
aut"
);
}
else
if
(
!
strcmp
(
p_meta
->
name
[
i
],
VLC_META_ARTIST
)
)
{
box
=
box_new
(
"
\251
ART"
);
}
else
if
(
!
strcmp
(
p_meta
->
name
[
i
],
VLC_META_COPYRIGHT
)
)
{
box
=
box_new
(
"
\251
cpy"
);
}
if
(
box
)
{
bo_add_16be
(
box
,
strlen
(
p_meta
->
value
[
i
]
)
);
bo_add_16be
(
box
,
0
);
bo_add_mem
(
box
,
strlen
(
p_meta
->
value
[
i
]
),
p_meta
->
value
[
i
]
);
box_fix
(
box
);
box_gather
(
udta
,
box
);
}
}
}
box_fix
(
udta
);
return
udta
;
...
...
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