Add a cast when converting from double to float

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