[vlc-devel] [PATCH 03/10] demux:mkv: init an invalid Seekpoint with a proper invalid seek position

Steve Lhomme robux4 at videolabs.io
Thu Aug 3 18:18:28 CEST 2017


---
 modules/demux/mkv/matroska_segment_seeker.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/demux/mkv/matroska_segment_seeker.cpp b/modules/demux/mkv/matroska_segment_seeker.cpp
index 188e3e5716..1c67e66210 100644
--- a/modules/demux/mkv/matroska_segment_seeker.cpp
+++ b/modules/demux/mkv/matroska_segment_seeker.cpp
@@ -161,7 +161,7 @@ SegmentSeeker::get_seekpoints_around( mtime_t pts, seekpoints_t const& seekpoint
 
     typedef seekpoints_t::const_iterator iterator;
 
-    Seekpoint const needle ( Seekpoint::DISABLED, -1, pts );
+    Seekpoint const needle ( Seekpoint::DISABLED, std::numeric_limits<fptr_t>::max(), pts );
 
     iterator const it_begin  = seekpoints.begin();
     iterator const it_end    = seekpoints.end();
-- 
2.13.0



More information about the vlc-devel mailing list