[vlc-commits] demux:mkv: clean the type and default value of the seek position

Steve Lhomme git at videolan.org
Fri Aug 4 10:07:22 CEST 2017


vlc | branch: master | Steve Lhomme <robUx4 at videolabs.io> | Thu Aug  3 18:18:26 2017 +0200| [044556373507eacea3a5f9f80c2475bee6a0802e] | committer: Jean-Baptiste Kempf

demux:mkv: clean the type and default value of the seek position

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=044556373507eacea3a5f9f80c2475bee6a0802e
---

 modules/demux/mkv/matroska_segment.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/demux/mkv/matroska_segment.cpp b/modules/demux/mkv/matroska_segment.cpp
index 69522f36a3..a7431816b2 100644
--- a/modules/demux/mkv/matroska_segment.cpp
+++ b/modules/demux/mkv/matroska_segment.cpp
@@ -801,8 +801,8 @@ bool matroska_segment_c::Seek( mtime_t i_absolute_mk_date, mtime_t i_mk_time_off
 {
     SegmentSeeker::tracks_seekpoint_t seekpoints;
 
-    uint64_t i_seek_position = -1;
-    mtime_t i_mk_seek_time   = -1;
+    SegmentSeeker::fptr_t i_seek_position = std::numeric_limits<SegmentSeeker::fptr_t>::max();
+    mtime_t i_mk_seek_time = -1;
     mtime_t i_mk_date = i_absolute_mk_date - i_mk_time_offset;
 
     // reset information for all tracks //



More information about the vlc-commits mailing list