Fix Windows 64 break (#222)

Change-Id: I88bfdee9020a6abb96d6d38397263c08773501df
This commit is contained in:
Kongqun Yang 2017-03-31 14:37:02 -07:00 committed by GitHub
parent d007ddf20b
commit 437d48f041
1 changed files with 2 additions and 2 deletions

View File

@ -164,8 +164,8 @@ Status Demuxer::InitializeParser() {
}
// Read enough bytes before detecting the container.
size_t bytes_read = 0;
while (bytes_read < kInitBufSize) {
int64_t bytes_read = 0;
while (static_cast<size_t>(bytes_read) < kInitBufSize) {
int64_t read_result =
media_file_->Read(buffer_.get() + bytes_read, kInitBufSize);
if (read_result < 0)