Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
VLC
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
15
Merge Requests
15
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
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
Steve Lhomme
VLC
Commits
66c4cbb0
Commit
66c4cbb0
authored
Oct 31, 2016
by
François Cartegnie
🤞
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
demux: mp4: add chunk virtual trun
Adds continuity sequence counter, like fragmented mp4 truns
parent
daca57ae
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
modules/demux/mp4/mp4.c
modules/demux/mp4/mp4.c
+8
-0
modules/demux/mp4/mp4.h
modules/demux/mp4/mp4.h
+1
-0
No files found.
modules/demux/mp4/mp4.c
View file @
66c4cbb0
...
...
@@ -439,6 +439,11 @@ static void MP4_GetInterleaving( demux_t *p_demux, uint64_t *pi_max_contiguous,
nexttk
=
cur
;
}
/* copy previous run */
if
(
nexttk
&&
nexttk
->
i_chunk
>
0
)
nexttk
->
chunk
[
nexttk
->
i_chunk
].
i_virtual_run_number
=
nexttk
->
chunk
[
nexttk
->
i_chunk
-
1
].
i_virtual_run_number
;
if
(
tk
!=
nexttk
)
{
i_duration
=
i_duration
*
CLOCK_FREQ
/
tk
->
i_timescale
;
...
...
@@ -448,6 +453,9 @@ static void MP4_GetInterleaving( demux_t *p_demux, uint64_t *pi_max_contiguous,
if
(
tk
->
i_chunk
!=
tk
->
i_chunk_count
)
*
pb_flat
=
false
;
if
(
nexttk
&&
nexttk
->
i_chunk
>
0
)
/* new run number */
nexttk
->
chunk
[
nexttk
->
i_chunk
].
i_virtual_run_number
++
;
}
tk
=
nexttk
;
...
...
modules/demux/mp4/mp4.h
View file @
66c4cbb0
...
...
@@ -38,6 +38,7 @@ typedef struct
uint32_t
i_sample_count
;
/* how many samples in this chunk */
uint32_t
i_sample_first
;
/* index of the first sample in this chunk */
uint32_t
i_sample
;
/* index of the next sample to read in this chunk */
uint32_t
i_virtual_run_number
;
/* chunks interleaving sequence */
/* now provide way to calculate pts, dts, and offset without too
much memory and with fast access */
...
...
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