diff options
author | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2010-11-08 04:43:48 +0200 |
---|---|---|
committer | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2010-11-08 18:05:12 +0200 |
commit | 5c3aaf03b14cf2ca7b0768a5eec164dd61b81491 (patch) | |
tree | cfe27c866657469b8f50562fd3d46af42690dd74 | |
parent | 4de3f1942699751c410728e59569186065f40eac (diff) | |
download | mpv-5c3aaf03b14cf2ca7b0768a5eec164dd61b81491.tar.bz2 mpv-5c3aaf03b14cf2ca7b0768a5eec164dd61b81491.tar.xz |
demux_mkv: fix seek hang when going past end of file without index
-rw-r--r-- | libmpdemux/demux_mkv.c | 2 |
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: |