[vlc-commits] demux:mkv: do look far for seekpoints if the segment has no Cues
Steve Lhomme
git at videolan.org
Wed Feb 14 16:48:16 CET 2018
vlc/vlc-3.0 | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Wed Feb 14 11:10:22 2018 +0100| [01ff700ee2c80cfff8bbc63c4cced9fe53266154] | committer: Hugo Beauzée-Luyssen
demux:mkv: do look far for seekpoints if the segment has no Cues
Fixes #19631
(cherry picked from commit 359e82a9bd80efd006922992f4a2c2bfef0069a9)
Signed-off-by: Hugo Beauzée-Luyssen <hugo at beauzee.fr>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=01ff700ee2c80cfff8bbc63c4cced9fe53266154
---
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 d231d03590..7304e79e82 100644
--- a/modules/demux/mkv/matroska_segment_seeker.cpp
+++ b/modules/demux/mkv/matroska_segment_seeker.cpp
@@ -314,7 +314,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