vlc | branch: master | Steve Lhomme <rob...@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 );
 

_______________________________________________
vlc-commits mailing list
vlc-commits@videolan.org
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to