demux_mf: allow seeking past the end

How's this for a corner case.
This commit is contained in:
wm4 2014-07-30 00:23:16 +02:00
parent 593ad996e0
commit 6b928fa2a0
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ static void demux_seek_mf(demuxer_t *demuxer, double rel_seek_secs, int flags)
if (newpos < 0)
newpos = 0;
if (newpos >= mf->nr_of_files)
newpos = mf->nr_of_files - 1;
newpos = mf->nr_of_files;
mf->curr_frame = newpos;
}