Cast a float to integer

This fixes warnings with MSVC.

Review at https://rbcommons.com/s/OpenH264/r/992/.