demux_mkv: fix seek hang when going past end of file without index

This commit is contained in:
Uoti Urpala 2010-11-08 04:43:48 +02:00
parent 4de3f19426
commit 5c3aaf03b1
1 changed files with 2 additions and 0 deletions

View File

@ -2465,6 +2465,8 @@ static int seek_creating_index(struct demuxer *demuxer, float rel_seek_secs,
} }
} }
} }
if (s->eof)
break;
stream_seek(s, end); stream_seek(s, end);
} }
enough_index: enough_index: