Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
ebba6561
Commit
ebba6561
authored
Oct 11, 2004
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/demux/ps.c: work around broken streams produced with WinSubMux.
parent
ddc8575b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
1 deletion
+17
-1
modules/demux/ps.c
modules/demux/ps.c
+17
-1
No files found.
modules/demux/ps.c
View file @
ebba6561
...
...
@@ -193,7 +193,8 @@ static int Demux( demux_t *p_demux )
case
0x1ba
:
if
(
!
ps_pkt_parse_pack
(
p_pkt
,
&
p_sys
->
i_scr
,
&
i_mux_rate
)
)
{
es_out_Control
(
p_demux
->
out
,
ES_OUT_SET_PCR
,
p_sys
->
i_scr
);
/* done later on to work around bad vcd/svcd streams */
/* es_out_Control( p_demux->out, ES_OUT_SET_PCR, p_sys->i_scr ); */
if
(
i_mux_rate
>
0
)
p_sys
->
i_mux_rate
=
i_mux_rate
;
}
block_Release
(
p_pkt
);
...
...
@@ -235,6 +236,21 @@ static int Demux( demux_t *p_demux )
}
tk
->
b_seen
=
VLC_TRUE
;
}
/* The popular VCD/SVCD subtitling WinSubMux does not
* renumber the SCRs when merging subtitles into the PES */
if
(
tk
->
b_seen
&&
(
tk
->
fmt
.
i_codec
==
VLC_FOURCC
(
'o'
,
'g'
,
't'
,
' '
)
||
tk
->
fmt
.
i_codec
==
VLC_FOURCC
(
'c'
,
'v'
,
'd'
,
' '
)
)
)
{
p_sys
->
i_scr
=
-
1
;
}
if
(
p_sys
->
i_scr
>
0
)
es_out_Control
(
p_demux
->
out
,
ES_OUT_SET_PCR
,
p_sys
->
i_scr
);
p_sys
->
i_scr
=
-
1
;
if
(
tk
->
b_seen
&&
tk
->
es
&&
!
ps_pkt_parse_pes
(
p_pkt
,
tk
->
i_skip
)
)
{
...
...
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