From 437d48f041d142f12bec85231d2e8b9a57abe2dc Mon Sep 17 00:00:00 2001 From: Kongqun Yang Date: Fri, 31 Mar 2017 14:37:02 -0700 Subject: [PATCH] Fix Windows 64 break (#222) Change-Id: I88bfdee9020a6abb96d6d38397263c08773501df --- packager/media/demuxer/demuxer.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packager/media/demuxer/demuxer.cc b/packager/media/demuxer/demuxer.cc index 6751b29d1d..39769835d1 100644 --- a/packager/media/demuxer/demuxer.cc +++ b/packager/media/demuxer/demuxer.cc @@ -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(bytes_read) < kInitBufSize) { int64_t read_result = media_file_->Read(buffer_.get() + bytes_read, kInitBufSize); if (read_result < 0)