vpxpes_parser: Fix MSVC build.

Replace implicit cast with explicit cast.

Change-Id: I6e8948e46b7589af334eaea3b41e0bcb808b7825
This commit is contained in:
Tom Finegan 2016-04-08 21:23:12 -07:00
parent 784b6fe4fe
commit 6397597194

View File

@ -35,7 +35,7 @@ bool VpxPesParser::BcmvHeader::Valid() const {
}
bool VpxPesParser::Open(const std::string& pes_file) {
pes_file_size_ = libwebm::GetFileSize(pes_file);
pes_file_size_ = static_cast<size_t>(libwebm::GetFileSize(pes_file));
if (pes_file_size_ <= 0)
return false;
pes_file_data_.reserve(static_cast<size_t>(pes_file_size_));