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
1e1aebbc
Commit
1e1aebbc
authored
Jun 02, 2014
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mux: mp4: fix stss samples grouping
parent
3291be91
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
modules/mux/mp4.c
modules/mux/mp4.c
+2
-4
No files found.
modules/mux/mp4.c
View file @
1e1aebbc
...
...
@@ -1396,17 +1396,15 @@ static bo_t *GetStblBox(sout_mux_t *p_mux, mp4_stream_t *p_stream)
unsigned
i_index
=
0
;
for
(
unsigned
i
=
0
;
i
<
p_stream
->
i_entry_count
;
i_index
++
)
{
p_stream
->
entry
[
i
].
i_length
=
p_stream
->
entry
[
i
].
i_length
*
(
int64_t
)
i_timescale
/
CLOCK_FREQ
;
int
i_first
=
i
;
int64
_t
i_delta
=
p_stream
->
entry
[
i
].
i_length
;
mtime
_t
i_delta
=
p_stream
->
entry
[
i
].
i_length
;
for
(;
i
<
p_stream
->
i_entry_count
;
++
i
)
if
(
i
==
p_stream
->
i_entry_count
||
p_stream
->
entry
[
i
].
i_length
!=
i_delta
)
break
;
bo_add_32be
(
stts
,
i
-
i_first
);
// sample-count
bo_add_32be
(
stts
,
i_delta
);
// sample-delta
bo_add_32be
(
stts
,
i_delta
*
i_timescale
/
CLOCK_FREQ
);
// sample-delta
}
bo_fix_32be
(
stts
,
12
,
i_index
);
...
...
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