input:reset the file pointer before return in guessFrameCount()