Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
9f8bf1c0
Commit
9f8bf1c0
authored
Mar 16, 2015
by
Steve Lhomme
Committed by
Jean-Baptiste Kempf
Mar 16, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MKV: force 64 bits constants the right way
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
0a6b059e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
modules/demux/mkv/matroska_segment.cpp
modules/demux/mkv/matroska_segment.cpp
+7
-7
No files found.
modules/demux/mkv/matroska_segment.cpp
View file @
9f8bf1c0
...
...
@@ -154,7 +154,7 @@ void matroska_segment_c::LoadCues( KaxCues *cues )
b_invalid_cue
=
true
;
break
;
}
idx
.
i_time
=
uint64
(
ctime
)
*
i_timescale
/
(
mtime_t
)
1000
;
idx
.
i_time
=
uint64
(
ctime
)
*
i_timescale
/
INT64_C
(
1000
)
;
}
else
if
(
MKV_IS_ID
(
el
,
KaxCueTrackPositions
)
)
{
...
...
@@ -598,7 +598,7 @@ void matroska_segment_c::IndexAppendCluster( KaxCluster *cluster )
idx
.
i_track
=
-
1
;
idx
.
i_block_number
=
-
1
;
idx
.
i_position
=
cluster
->
GetElementPosition
();
idx
.
i_time
=
cluster
->
GlobalTimecode
()
/
(
mtime_t
)
1000
;
idx
.
i_time
=
cluster
->
GlobalTimecode
()
/
INT64_C
(
1000
)
;
idx
.
b_key
=
true
;
i_index
++
;
...
...
@@ -1056,9 +1056,9 @@ void matroska_segment_c::Seek( mtime_t i_date, mtime_t i_time_offset, int64_t i_
}
if
(
simpleblock
)
i_pts
=
sys
.
i_chapter_time
+
simpleblock
->
GlobalTimecode
()
/
(
mtime_t
)
1000
;
i_pts
=
sys
.
i_chapter_time
+
simpleblock
->
GlobalTimecode
()
/
INT64_C
(
1000
)
;
else
i_pts
=
sys
.
i_chapter_time
+
block
->
GlobalTimecode
()
/
(
mtime_t
)
1000
;
i_pts
=
sys
.
i_chapter_time
+
block
->
GlobalTimecode
()
/
INT64_C
(
1000
)
;
if
(
i_track
<
tracks
.
size
()
)
{
if
(
tracks
[
i_track
]
->
fmt
.
i_cat
==
i_cat
&&
b_key_picture
)
...
...
@@ -1294,7 +1294,7 @@ void matroska_segment_c::EnsureDuration()
}
}
i_duration
=
(
i_last_timecode
-
cluster
->
GlobalTimecode
()
)
/
(
mtime_t
)
1000000
;
i_duration
=
(
i_last_timecode
-
cluster
->
GlobalTimecode
()
)
/
INT64_C
(
1000000
)
;
msg_Dbg
(
&
sys
.
demuxer
,
" extracted Duration=%"
PRId64
,
i_duration
);
delete
ep
;
...
...
@@ -1427,9 +1427,9 @@ int matroska_segment_c::BlockGet( KaxBlock * & pp_block, KaxSimpleBlock * & pp_s
if
(
i_index
>
0
&&
idx
.
i_time
==
-
1
)
{
if
(
pp_simpleblock
!=
NULL
)
idx
.
i_time
=
pp_simpleblock
->
GlobalTimecode
()
/
(
mtime_t
)
1000
;
idx
.
i_time
=
pp_simpleblock
->
GlobalTimecode
()
/
INT64_C
(
1000
)
;
else
idx
.
i_time
=
(
*
pp_block
).
GlobalTimecode
()
/
(
mtime_t
)
1000
;
idx
.
i_time
=
(
*
pp_block
).
GlobalTimecode
()
/
INT64_C
(
1000
)
;
idx
.
b_key
=
*
pb_key_picture
;
}
#undef idx
...
...
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