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
80ba24ee
Commit
80ba24ee
authored
Aug 29, 2011
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MP4: support udta.name for track description
parent
76ab435d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
modules/demux/mp4/mp4.c
modules/demux/mp4/mp4.c
+9
-5
No files found.
modules/demux/mp4/mp4.c
View file @
80ba24ee
...
...
@@ -2403,15 +2403,19 @@ static void MP4_TrackCreate( demux_t *p_demux, mp4_track_t *p_track,
p_udta
=
MP4_BoxGet
(
p_box_trak
,
"udta"
);
if
(
p_udta
)
{
MP4_Box_t
*
p_
0xa9xxx
;
for
(
p_
0xa9xxx
=
p_udta
->
p_first
;
p_0xa9xxx
!=
NULL
;
p_
0xa9xxx
=
p_0xa9xxx
->
p_next
)
MP4_Box_t
*
p_
box_iter
;
for
(
p_
box_iter
=
p_udta
->
p_first
;
p_box_iter
!=
NULL
;
p_
box_iter
=
p_box_iter
->
p_next
)
{
switch
(
p_
0xa9xxx
->
i_type
)
switch
(
p_
box_iter
->
i_type
)
{
case
ATOM_0xa9nam
:
p_track
->
fmt
.
psz_description
=
strdup
(
p_0xa9xxx
->
data
.
p_0xa9xxx
->
psz_text
);
strdup
(
p_box_iter
->
data
.
p_0xa9xxx
->
psz_text
);
break
;
case
ATOM_name
:
p_track
->
fmt
.
psz_description
=
strdup
(
p_box_iter
->
data
.
p_name
->
psz_text
);
break
;
}
}
...
...
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