Commit 5af8fa8e authored by Steve Lhomme's avatar Steve Lhomme Committed by Jean-Baptiste Kempf

demux:mkv: fix a possible infinite loop looking for a position if there's none

Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <>
parent a6b64961
......@@ -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 );
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment