fix FPS detection

As reported at
https://www.facebook.com/internetfriendlymediaencoder/posts/294741600706370