[vlc-devel] [PATCH 10/11] demux:mkv: fix a possible infinite loop looking for a position if there's none
Steve Lhomme
robux4 at ycbcr.xyz
Tue Jan 2 16:38:17 CET 2018
---
modules/demux/mkv/matroska_segment_seeker.cpp | 3 +++
1 file changed, 3 insertions(+)
diff --git a/modules/demux/mkv/matroska_segment_seeker.cpp b/modules/demux/mkv/matroska_segment_seeker.cpp
index 3f89a207ec..ab85bbf8fc 100644
--- a/modules/demux/mkv/matroska_segment_seeker.cpp
+++ b/modules/demux/mkv/matroska_segment_seeker.cpp
@@ -290,6 +290,9 @@ SegmentSeeker::get_seekpoints( matroska_segment_c& ms, mtime_t target_pts,
Seekpoint const& start = seekpoints.first;
Seekpoint const& end = seekpoints.second;
+ if (start.fpos == std::numeric_limits<fptr_t>::max() )
+ return tracks_seekpoint_t();
+
index_range( ms, Range( start.fpos, end.fpos ), needle_pts );
{
--
2.14.2
More information about the vlc-devel
mailing list