Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(834)

Unified Diff: media/base/mime_util.cc

Issue 1534273002: Switch to standard integer types in media/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: media/base/mime_util.cc
diff --git a/media/base/mime_util.cc b/media/base/mime_util.cc
index bb85b91bd2c50a6edbf112c503537abd526953d5..7debd6ca5d22d85ff3b87ee7b0b0080b78f5df6d 100644
--- a/media/base/mime_util.cc
+++ b/media/base/mime_util.cc
@@ -323,7 +323,7 @@ std::string TranslateLegacyAvc1CodecIds(const std::string& codec_id) {
// And <level> is H.264 level multiplied by 10, also encoded as decimal number
// E.g. <level> 31 corresponds to H.264 level 3.1
// See, for example, http://qtdevseed.apple.com/qadrift/testcases/tc-0133.php
- uint32 level_start = 0;
+ uint32_t level_start = 0;
std::string result;
if (base::StartsWith(codec_id, "avc1.66.", base::CompareCase::SENSITIVE)) {
level_start = 8;
@@ -338,7 +338,7 @@ std::string TranslateLegacyAvc1CodecIds(const std::string& codec_id) {
result = "avc1.6400";
}
- uint32 level = 0;
+ uint32_t level = 0;
if (level_start > 0 &&
base::StringToUint(codec_id.substr(level_start), &level) && level < 256) {
// This is a valid legacy avc1 codec id - return the codec id translated
@@ -496,7 +496,7 @@ void MimeUtil::RemoveProprietaryMediaTypesAndCodecsForTests() {
}
static bool IsValidH264Level(const std::string& level_str) {
- uint32 level;
+ uint32_t level;
if (level_str.size() != 2 || !base::HexStringToUInt(level_str, &level))
return false;

Powered by Google App Engine
This is Rietveld 408576698