Making sure we don't seek for the next frame when it's over.
Merge pull request #24 from bbcrd/fix-24

Out of Range bug