[vlc-commits] demux:mkv: init an invalid Seekpoint with a proper invalid seek position
Steve Lhomme
git at videolan.org
Fri Aug 4 10:07:31 CEST 2017
vlc | branch: master | Steve Lhomme <robUx4 at videolabs.io> | Thu Aug 3 18:18:28 2017 +0200| [fcdb9e3af157c7e2ab18bfcd47fef16bb746e9b4] | committer: Jean-Baptiste Kempf
demux:mkv: init an invalid Seekpoint with a proper invalid seek position
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=fcdb9e3af157c7e2ab18bfcd47fef16bb746e9b4
---
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();
More information about the vlc-commits
mailing list