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
643080c5
Commit
643080c5
authored
Dec 20, 2009
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated ASF to use VLC_TS_INVALID/0.
parent
cacaf61d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
modules/demux/asf/asf.c
modules/demux/asf/asf.c
+7
-6
No files found.
modules/demux/asf/asf.c
View file @
643080c5
...
...
@@ -594,10 +594,11 @@ static int DemuxPacket( demux_t *p_demux )
/* send complete packet to decoder */
block_t
*
p_gather
=
block_ChainGather
(
tk
->
p_frame
);
tk
->
i_time
=
p_gather
->
i_dts
;
if
(
p_gather
->
i_dts
>
VLC_TS_INVALID
)
tk
->
i_time
=
p_gather
->
i_dts
-
VLC_TS_0
;
if
(
p_sys
->
i_time
<
0
)
es_out_Control
(
p_demux
->
out
,
ES_OUT_SET_PCR
,
tk
->
i_time
+
1
);
es_out_Control
(
p_demux
->
out
,
ES_OUT_SET_PCR
,
VLC_TS_0
+
tk
->
i_time
);
es_out_Send
(
p_demux
->
out
,
tk
->
p_es
,
p_gather
);
...
...
@@ -617,13 +618,13 @@ static int DemuxPacket( demux_t *p_demux )
if
(
tk
->
p_frame
==
NULL
)
{
p_frag
->
i_pts
=
i_pts
+
i_payload
*
(
mtime_t
)
i_pts_delta
;
p_frag
->
i_pts
=
VLC_TS_0
+
i_pts
+
i_payload
*
(
mtime_t
)
i_pts_delta
;
if
(
tk
->
i_cat
!=
VIDEO_ES
)
p_frag
->
i_dts
=
p_frag
->
i_pts
;
p_frag
->
i_dts
=
VLC_TS_0
+
p_frag
->
i_pts
;
else
{
p_frag
->
i_dts
=
p_frag
->
i_pts
;
p_frag
->
i_pts
=
0
;
p_frag
->
i_dts
=
VLC_TS_0
+
p_frag
->
i_pts
;
p_frag
->
i_pts
=
VLC_TS_INVALID
;
}
}
...
...
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