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

Unified Diff: media/formats/webm/webm_info_parser.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/formats/webm/webm_info_parser.cc
diff --git a/media/formats/webm/webm_info_parser.cc b/media/formats/webm/webm_info_parser.cc
index 6309c21e9db2e00614d93bec5957b9100666b0b5..be6d70883878387ad016ef09cb6c35ed5bf0c6e6 100644
--- a/media/formats/webm/webm_info_parser.cc
+++ b/media/formats/webm/webm_info_parser.cc
@@ -20,7 +20,7 @@ WebMInfoParser::WebMInfoParser()
WebMInfoParser::~WebMInfoParser() {}
-int WebMInfoParser::Parse(const uint8* buf, int size) {
+int WebMInfoParser::Parse(const uint8_t* buf, int size) {
timecode_scale_ = -1;
duration_ = -1;
@@ -45,7 +45,7 @@ bool WebMInfoParser::OnListEnd(int id) {
return true;
}
-bool WebMInfoParser::OnUInt(int id, int64 val) {
+bool WebMInfoParser::OnUInt(int id, int64_t val) {
if (id != kWebMIdTimecodeScale)
return true;
@@ -73,12 +73,12 @@ bool WebMInfoParser::OnFloat(int id, double val) {
return true;
}
-bool WebMInfoParser::OnBinary(int id, const uint8* data, int size) {
+bool WebMInfoParser::OnBinary(int id, const uint8_t* data, int size) {
if (id == kWebMIdDateUTC) {
if (size != 8)
return false;
- int64 date_in_nanoseconds = 0;
+ int64_t date_in_nanoseconds = 0;
for (int i = 0; i < size; ++i)
date_in_nanoseconds = (date_in_nanoseconds << 8) | data[i];

Powered by Google App Engine
This is Rietveld 408576698