From 5c3aaf03b14cf2ca7b0768a5eec164dd61b81491 Mon Sep 17 00:00:00 2001 From: Uoti Urpala Date: Mon, 8 Nov 2010 04:43:48 +0200 Subject: demux_mkv: fix seek hang when going past end of file without index --- libmpdemux/demux_mkv.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libmpdemux/demux_mkv.c') 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: -- cgit v1.2.3