msvc/libwebm_util: Fix floating point to int conversion warning.

Change-Id: I3f813df344989b0200a49215ab0562d896577425
This commit is contained in:
Tom Finegan 2016-03-30 10:55:33 -07:00
parent 6481c24a19
commit 59614b8fae

View File

@ -15,7 +15,7 @@ namespace libwebm {
std::int64_t NanosecondsTo90KhzTicks(std::int64_t nanoseconds) {
const double kNanosecondsPerSecond = 1000000000.0;
const double pts_seconds = nanoseconds / kNanosecondsPerSecond;
return pts_seconds * 90000;
return static_cast<std::int64_t>(pts_seconds * 90000);
}
bool ParseVP9SuperFrameIndex(const std::uint8_t* frame,