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
2f246ccf
Commit
2f246ccf
authored
Dec 13, 2014
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
demux: libmp4: add AddChild helper
parent
0d4fd66b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
modules/demux/mp4/libmp4.c
modules/demux/mp4/libmp4.c
+10
-3
No files found.
modules/demux/mp4/libmp4.c
View file @
2f246ccf
...
...
@@ -72,6 +72,15 @@ static void MP4_ConvertDate2Str( char *psz, uint64_t i_date, bool b_relative )
*****************************************************************************/
static
MP4_Box_t
*
MP4_ReadBox
(
stream_t
*
p_stream
,
MP4_Box_t
*
p_father
);
static
void
MP4_BoxAddChild
(
MP4_Box_t
*
p_parent
,
MP4_Box_t
*
p_childbox
)
{
if
(
!
p_parent
->
p_first
)
p_parent
->
p_first
=
p_childbox
;
else
p_parent
->
p_last
->
p_next
=
p_childbox
;
p_parent
->
p_last
=
p_childbox
;
}
/*****************************************************************************
* MP4_ReadBoxCommon : Load only common parameters for all boxes
...
...
@@ -222,9 +231,7 @@ static int MP4_ReadBoxContainerChildrenIndexed( stream_t *p_stream,
p_box
->
i_index
=
i_index
;
/* chain this box with the father and the other at same level */
if
(
!
p_container
->
p_first
)
p_container
->
p_first
=
p_box
;
else
p_container
->
p_last
->
p_next
=
p_box
;
p_container
->
p_last
=
p_box
;
MP4_BoxAddChild
(
p_container
,
p_box
);
if
(
p_box
->
i_type
==
i_last_child
)
{
...
...
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