[vlc-commits] demux:mkv: don't attempt to seek to a cluster position when we don't know any

Steve Lhomme git at videolan.org
Mon Feb 5 19:12:35 CET 2018


vlc/vlc-3.0 | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Mon Feb  5 18:40:42 2018 +0100| [a960473ef59f359537ff3bfe43c40d5df79fb27f] | committer: Jean-Baptiste Kempf

demux:mkv: don't attempt to seek to a cluster position when we don't know any

This issue is not reproducible on master, therefore it is only in 3.0

Fixes: CD a8c03f5d-9a39-4d91-b0e5-80fe52740cac

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 modules/demux/mkv/matroska_segment_seeker.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/modules/demux/mkv/matroska_segment_seeker.cpp b/modules/demux/mkv/matroska_segment_seeker.cpp
index 13bc8f157f..d231d03590 100644
--- a/modules/demux/mkv/matroska_segment_seeker.cpp
+++ b/modules/demux/mkv/matroska_segment_seeker.cpp
@@ -462,6 +462,7 @@ SegmentSeeker::mkv_jump_to( matroska_segment_c& ms, fptr_t fpos )
     fptr_t i_cluster_pos = -1;
     ms.cluster = NULL;
 
+    if (!_cluster_positions.empty())
     {
         cluster_positions_t::iterator cluster_it = greatest_lower_bound(
           _cluster_positions.begin(), _cluster_positions.end(), fpos



More information about the vlc-commits mailing list