summaryrefslogtreecommitdiffstats
path: root/libmpdemux/demux_mkv.c
diff options
context:
space:
mode:
authorUoti Urpala <uau@glyph.nonexistent.invalid>2010-11-08 04:43:48 +0200
committerUoti Urpala <uau@glyph.nonexistent.invalid>2010-11-08 18:05:12 +0200
commit5c3aaf03b14cf2ca7b0768a5eec164dd61b81491 (patch)
treecfe27c866657469b8f50562fd3d46af42690dd74 /libmpdemux/demux_mkv.c
parent4de3f1942699751c410728e59569186065f40eac (diff)
downloadmpv-5c3aaf03b14cf2ca7b0768a5eec164dd61b81491.tar.bz2
mpv-5c3aaf03b14cf2ca7b0768a5eec164dd61b81491.tar.xz
demux_mkv: fix seek hang when going past end of file without index
Diffstat (limited to 'libmpdemux/demux_mkv.c')
-rw-r--r--libmpdemux/demux_mkv.c2
1 files changed, 2 insertions, 0 deletions
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: