Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
6088f39f
Commit
6088f39f
authored
Jul 27, 2009
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Workaround for 0 being invalid timestamp.
parent
9b8c543c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
modules/demux/mkv/mkv.cpp
modules/demux/mkv/mkv.cpp
+8
-1
No files found.
modules/demux/mkv/mkv.cpp
View file @
6088f39f
...
...
@@ -603,6 +603,12 @@ msg_Dbg( p_demux, "block i_dts: %"PRId64" / i_pts: %"PRId64, p_block->i_dts, p_b
p_block
->
i_length
=
i_duration
*
1000
;
}
/* FIXME remove when VLC_TS_INVALID work is done */
if
(
i
==
0
||
p_block
->
i_dts
>
0
)
p_block
->
i_dts
++
;
if
(
!
tk
->
b_dts_only
&&
(
i
==
0
||
p_block
->
i_pts
)
)
p_block
->
i_pts
++
;
es_out_Send
(
p_demux
->
out
,
tk
->
p_es
,
p_block
);
/* use time stamp only for first block */
...
...
@@ -859,7 +865,8 @@ static int Demux( demux_t *p_demux)
else
p_sys
->
i_pts
=
(
p_sys
->
i_chapter_time
+
block
->
GlobalTimecode
())
/
(
mtime_t
)
1000
;
es_out_Control
(
p_demux
->
out
,
ES_OUT_SET_PCR
,
p_sys
->
i_pts
);
/* FIXME remove the +1 when VLC_TS_INVALID work is done */
es_out_Control
(
p_demux
->
out
,
ES_OUT_SET_PCR
,
p_sys
->
i_pts
+
1
);
if
(
p_sys
->
i_pts
>=
p_sys
->
i_start_pts
)
{
...
...
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