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
12
Merge Requests
12
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
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
1fe24f39
Commit
1fe24f39
authored
Apr 19, 2017
by
François Cartegnie
🤞
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
demux: ps: delay creation from system header
parent
a32c5ee7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
7 deletions
+12
-7
modules/demux/mpeg/ps.c
modules/demux/mpeg/ps.c
+10
-2
modules/demux/mpeg/ps.h
modules/demux/mpeg/ps.h
+2
-5
No files found.
modules/demux/mpeg/ps.c
View file @
1fe24f39
...
...
@@ -469,9 +469,11 @@ static int Demux( demux_t *p_demux )
{
ps_track_t
*
tk
=
&
p_sys
->
tk
[
i
];
if
(
tk
->
b_seen
&&
!
tk
->
es
&&
tk
->
fmt
.
i_cat
!=
UNKNOWN_ES
)
if
(
!
tk
->
b_configured
&&
tk
->
fmt
.
i_cat
!=
UNKNOWN_ES
)
{
tk
->
es
=
es_out_Add
(
p_demux
->
out
,
&
tk
->
fmt
);
if
(
tk
->
b_seen
)
tk
->
es
=
es_out_Add
(
p_demux
->
out
,
&
tk
->
fmt
);
/* else create when seeing packet */
tk
->
b_configured
=
true
;
}
}
...
...
@@ -546,6 +548,12 @@ static int Demux( demux_t *p_demux )
}
}
/* Late creation from system header */
if
(
!
tk
->
b_seen
&&
tk
->
b_configured
&&
!
tk
->
es
&&
tk
->
fmt
.
i_cat
!=
UNKNOWN_ES
)
tk
->
es
=
es_out_Add
(
p_demux
->
out
,
&
tk
->
fmt
);
tk
->
b_seen
=
true
;
/* The popular VCD/SVCD subtitling WinSubMux does not
* renumber the SCRs when merging subtitles into the PES */
if
(
tk
->
b_seen
&&
!
p_sys
->
b_bad_scr
&&
...
...
modules/demux/mpeg/ps.h
View file @
1fe24f39
...
...
@@ -483,11 +483,8 @@ static inline int ps_pkt_parse_system( block_t *p_pkt, ps_psm_t *p_psm,
continue
;
int
i_tk
=
PS_ID_TO_TK
(
i_id
);
if
(
!
tk
[
i_tk
].
b_configured
&&
!
ps_track_fill
(
&
tk
[
i_tk
],
p_psm
,
i_id
,
NULL
,
false
)
)
{
tk
[
i_tk
].
b_configured
=
true
;
}
if
(
!
tk
[
i_tk
].
b_configured
)
ps_track_fill
(
&
tk
[
i_tk
],
p_psm
,
i_id
,
NULL
,
false
);
}
return
VLC_SUCCESS
;
}
...
...
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