Commit 924abe77 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 <jb@videolan.org>
(cherry picked from commit 5af8fa8e)
Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent 72376ef0
......@@ -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
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment