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
a06942a1
Commit
a06942a1
authored
Aug 24, 2013
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mp4 mux: simplify box*new
parent
d5d904b9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
17 deletions
+11
-17
modules/mux/mp4.c
modules/mux/mp4.c
+11
-17
No files found.
modules/mux/mp4.c
View file @
a06942a1
...
...
@@ -1953,32 +1953,26 @@ static void bo_add_descr( bo_t *p_bo, uint8_t tag, uint32_t size )
static
bo_t
*
box_new
(
const
char
*
fcc
)
{
bo_t
*
box
;
bo_t
*
box
=
malloc
(
sizeof
(
*
box
)
);
if
(
!
box
)
return
NULL
;
if
(
(
box
=
malloc
(
sizeof
(
bo_t
)
)
)
)
{
bo_init
(
box
);
bo_init
(
box
);
bo_add_32be
(
box
,
0
);
bo_add_fourcc
(
box
,
fcc
);
}
bo_add_32be
(
box
,
0
);
bo_add_fourcc
(
box
,
fcc
);
return
box
;
}
static
bo_t
*
box_full_new
(
const
char
*
fcc
,
uint8_t
v
,
uint32_t
f
)
{
bo_t
*
box
;
bo_t
*
box
=
box_new
(
fcc
);
if
(
!
box
)
return
NULL
;
if
(
(
box
=
malloc
(
sizeof
(
bo_t
)
)
)
)
{
bo_init
(
box
);
bo_add_32be
(
box
,
0
);
bo_add_fourcc
(
box
,
fcc
);
bo_add_8
(
box
,
v
);
bo_add_24be
(
box
,
f
);
}
bo_add_8
(
box
,
v
);
bo_add_24be
(
box
,
f
);
return
box
;
}
...
...
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