Avoid reading one extra frame at the end of the input file.
Merge pull request #10 from VFR-maniac/fix

Avoid reading one extra frame at the end of the input file.