msvc/libwebm_util: Fix floating point to int conversion warning.
Change-Id: I3f813df344989b0200a49215ab0562d896577425
This commit is contained in:
parent
6481c24a19
commit
59614b8fae
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user