[vlc-commits] demux:mkv: do look far for seekpoints if the segment has no Cues

Steve Lhomme git at videolan.org
Wed Feb 14 13:46:20 CET 2018


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Wed Feb 14 11:10:22 2018 +0100| [359e82a9bd80efd006922992f4a2c2bfef0069a9] | committer: Steve Lhomme

demux:mkv: do look far for seekpoints if the segment has no Cues

Fixes #19631

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=359e82a9bd80efd006922992f4a2c2bfef0069a9
---

 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 bb38ee31de..8feecb902f 100644
--- a/modules/demux/mkv/matroska_segment_seeker.cpp
+++ b/modules/demux/mkv/matroska_segment_seeker.cpp
@@ -310,7 +310,7 @@ SegmentSeeker::get_seekpoints( matroska_segment_c& ms, mtime_t target_pts,
         if ( start.fpos == std::numeric_limits<fptr_t>::max() )
             return tracks_seekpoint_t();
 
-        if ( end.fpos != std::numeric_limits<fptr_t>::max() )
+        if ( end.fpos != std::numeric_limits<fptr_t>::max() || !ms.b_cues )
             // do not read the whole (infinite?) file to get seek indexes
             index_range( ms, Range( start.fpos, end.fpos ), needle_pts );
 



More information about the vlc-commits mailing list