Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
723b35b5
Commit
723b35b5
authored
Feb 22, 2015
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
demux: ts: missing PCR repick for no-trust-pcr
parent
caf8d8af
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
modules/demux/ts.c
modules/demux/ts.c
+12
-1
No files found.
modules/demux/ts.c
View file @
723b35b5
...
@@ -3034,11 +3034,13 @@ static void PCRHandle( demux_t *p_demux, ts_pid_t *pid, block_t *p_bk )
...
@@ -3034,11 +3034,13 @@ static void PCRHandle( demux_t *p_demux, ts_pid_t *pid, block_t *p_bk )
static
int
FindPCRCandidate
(
demux_sys_t
*
p_sys
,
ts_prg_psi_t
*
p_prg
)
static
int
FindPCRCandidate
(
demux_sys_t
*
p_sys
,
ts_prg_psi_t
*
p_prg
)
{
{
ts_pid_t
*
p_cand
=
NULL
;
ts_pid_t
*
p_cand
=
NULL
;
int
i_previous
=
p_prg
->
i_pid_pcr
;
for
(
int
i
=
MIN_ES_PID
;
i
<=
MAX_ES_PID
;
i
++
)
for
(
int
i
=
MIN_ES_PID
;
i
<=
MAX_ES_PID
;
i
++
)
{
{
ts_pid_t
*
p_pid
=
&
p_sys
->
pid
[
i
];
ts_pid_t
*
p_pid
=
&
p_sys
->
pid
[
i
];
if
(
p_pid
->
b_seen
&&
p_pid
->
es
&&
p_pid
->
es
->
id
&&
if
(
p_pid
->
b_seen
&&
p_pid
->
es
&&
p_pid
->
es
->
id
&&
p_pid
->
i_owner_number
==
p_prg
->
i_number
)
p_pid
->
i_owner_number
==
p_prg
->
i_number
&&
p_cand
->
i_pid
!=
i_previous
)
{
{
if
(
p_pid
->
probed
.
i_pcr_count
)
/* check PCR frequency first */
if
(
p_pid
->
probed
.
i_pcr_count
)
/* check PCR frequency first */
{
{
...
@@ -5568,6 +5570,15 @@ static void PMTCallBack( void *data, dvbpsi_pmt_t *p_pmt )
...
@@ -5568,6 +5570,15 @@ static void PMTCallBack( void *data, dvbpsi_pmt_t *p_pmt )
if
(
i_clean
)
if
(
i_clean
)
free
(
pp_clean
);
free
(
pp_clean
);
if
(
!
p_sys
->
b_trust_pcr
)
{
int
i_cand
=
FindPCRCandidate
(
p_demux
->
p_sys
,
prg
);
prg
->
i_pid_pcr
=
i_cand
;
prg
->
pcr
.
b_disable
=
true
;
msg_Warn
(
p_demux
,
"PCR not trusted for program %d, set up workaround using pid %d"
,
prg
->
i_number
,
i_cand
);
}
/* Probe Boundaries */
/* Probe Boundaries */
if
(
p_sys
->
b_canfastseek
&&
prg
->
i_last_dts
==
-
1
)
if
(
p_sys
->
b_canfastseek
&&
prg
->
i_last_dts
==
-
1
)
{
{
...
...
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