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
4bee7b39
Commit
4bee7b39
authored
Mar 06, 2017
by
François Cartegnie
🤞
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
demux: ps: reject in avance scr (fix #2586)
parent
088aeb60
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
modules/demux/mpeg/ps.c
modules/demux/mpeg/ps.c
+11
-1
No files found.
modules/demux/mpeg/ps.c
View file @
4bee7b39
...
...
@@ -426,11 +426,19 @@ static int Demux( demux_t *p_demux )
else
es_out_Control
(
p_demux
->
out
,
ES_OUT_SET_PCR
,
VLC_TS_0
+
p_sys
->
i_scr
);
}
p_sys
->
i_scr
=
-
1
;
if
(
tk
->
b_seen
&&
tk
->
es
&&
!
ps_pkt_parse_pes
(
VLC_OBJECT
(
p_demux
),
p_pkt
,
tk
->
i_skip
)
)
{
if
(
(
tk
->
fmt
.
i_cat
==
AUDIO_ES
||
tk
->
fmt
.
i_cat
==
VIDEO_ES
)
&&
!
p_sys
->
b_bad_scr
&&
p_sys
->
i_scr
>
0
&&
p_pkt
->
i_pts
>
0
&&
p_sys
->
i_scr
>
p_pkt
->
i_pts
+
CLOCK_FREQ
/
4
)
{
msg_Warn
(
p_demux
,
"Incorrect SCR timing in advance of %ld ms, disabling"
,
p_sys
->
i_scr
-
p_pkt
->
i_pts
/
1000
);
p_sys
->
b_bad_scr
=
true
;
}
if
(
((
!
b_new
&&
!
p_sys
->
b_have_pack
)
||
p_sys
->
b_bad_scr
)
&&
(
tk
->
fmt
.
i_cat
==
AUDIO_ES
)
&&
(
p_pkt
->
i_pts
>
VLC_TS_INVALID
)
)
...
...
@@ -458,6 +466,8 @@ static int Demux( demux_t *p_demux )
{
block_Release
(
p_pkt
);
}
p_sys
->
i_scr
=
-
1
;
}
else
{
...
...
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