diff --git a/libmpdemux/demux_mkv.c b/libmpdemux/demux_mkv.c index 380f753d55..bc9607769f 100644 --- a/libmpdemux/demux_mkv.c +++ b/libmpdemux/demux_mkv.c @@ -2465,6 +2465,8 @@ static int seek_creating_index(struct demuxer *demuxer, float rel_seek_secs, } } } + if (s->eof) + break; stream_seek(s, end); } enough_index: