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
0e8f9f2e
Commit
0e8f9f2e
authored
Dec 20, 2009
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Used VLC_TS_INVALID/0 in PVA demuxer.
parent
b4493aeb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
modules/demux/pva.c
modules/demux/pva.c
+7
-4
No files found.
modules/demux/pva.c
View file @
0e8f9f2e
...
...
@@ -207,7 +207,7 @@ static int Demux( demux_t *p_demux )
if
(
(
p_frame
=
p_sys
->
p_es
)
)
{
if
(
p_frame
->
i_pts
>
0
&&
!
p_sys
->
b_pcr_audio
)
if
(
p_frame
->
i_pts
>
VLC_TS_INVALID
&&
!
p_sys
->
b_pcr_audio
)
{
es_out_Control
(
p_demux
->
out
,
ES_OUT_SET_PCR
,
(
int64_t
)
p_frame
->
i_pts
);
}
...
...
@@ -221,7 +221,8 @@ static int Demux( demux_t *p_demux )
{
p_frame
->
p_buffer
+=
i_skip
;
p_frame
->
i_buffer
-=
i_skip
;
if
(
i_pts
>
0
)
p_frame
->
i_pts
=
i_pts
*
100
/
9
;
if
(
i_pts
>=
0
)
p_frame
->
i_pts
=
VLC_TS_0
+
i_pts
*
100
/
9
;
block_ChainAppend
(
&
p_sys
->
p_es
,
p_frame
);
}
break
;
...
...
@@ -427,8 +428,10 @@ static void ParsePES( demux_t *p_demux )
p_pes
->
i_buffer
-=
i_skip
;
p_pes
->
p_buffer
+=
i_skip
;
if
(
i_dts
>=
0
)
p_pes
->
i_dts
=
i_dts
*
100
/
9
;
if
(
i_pts
>=
0
)
p_pes
->
i_pts
=
i_pts
*
100
/
9
;
if
(
i_dts
>=
0
)
p_pes
->
i_dts
=
VLC_TS_0
+
i_dts
*
100
/
9
;
if
(
i_pts
>=
0
)
p_pes
->
i_pts
=
VLC_TS_0
+
i_pts
*
100
/
9
;
/* Set PCR */
if
(
p_pes
->
i_pts
>
0
)
...
...
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