diff --git a/packager/media/formats/mp4/mp4_media_parser.cc b/packager/media/formats/mp4/mp4_media_parser.cc index dd41e5f362..04800b8357 100644 --- a/packager/media/formats/mp4/mp4_media_parser.cc +++ b/packager/media/formats/mp4/mp4_media_parser.cc @@ -118,7 +118,7 @@ bool MP4MediaParser::LoadMoov(const std::string& file_path) { LOG(ERROR) << "Unable to open media file '" << file_path << "'"; return false; } - if (file->Seek(0) < 0) { + if (!file->Seek(0)) { LOG(WARNING) << "Filesystem does not support seeking on file '" << file_path << "'"; return false;