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
dbbb8dd1
Commit
dbbb8dd1
authored
Jun 02, 2014
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mux: mp4: compress stsz entries
parent
1e1aebbc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
3 deletions
+17
-3
modules/mux/mp4.c
modules/mux/mp4.c
+17
-3
No files found.
modules/mux/mp4.c
View file @
dbbb8dd1
...
...
@@ -1411,10 +1411,24 @@ static bo_t *GetStblBox(sout_mux_t *p_mux, mp4_stream_t *p_stream)
/* FIXME add ctts ?? FIXME */
bo_t
*
stsz
=
box_full_new
(
"stsz"
,
0
,
0
);
bo_add_32be
(
stsz
,
0
);
// sample-size
bo_add_32be
(
stsz
,
p_stream
->
i_entry_count
);
// sample-count
int
i_size
=
0
;
for
(
unsigned
i
=
0
;
i
<
p_stream
->
i_entry_count
;
i
++
)
bo_add_32be
(
stsz
,
p_stream
->
entry
[
i
].
i_size
);
// sample-size
{
if
(
i
==
0
)
i_size
=
p_stream
->
entry
[
i
].
i_size
;
else
if
(
p_stream
->
entry
[
i
].
i_size
!=
i_size
)
{
i_size
=
0
;
break
;
}
}
bo_add_32be
(
stsz
,
i_size
);
// sample-size
bo_add_32be
(
stsz
,
p_stream
->
i_entry_count
);
// sample-count
if
(
i_size
==
0
)
// all samples have different size
{
for
(
unsigned
i
=
0
;
i
<
p_stream
->
i_entry_count
;
i
++
)
bo_add_32be
(
stsz
,
p_stream
->
entry
[
i
].
i_size
);
// sample-size
}
/* create stss table */
bo_t
*
stss
=
NULL
;
...
...
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