fix skipframe count error
Merge pull request #1366 from lyao2/refine_frameskip2

fix skipframe count error
Merge remote-tracking branch 'upstream/master' into travis.osx