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

Unified Diff: media/formats/mp2t/es_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/mp2t/es_parser.cc
diff --git a/media/formats/mp2t/es_parser.cc b/media/formats/mp2t/es_parser.cc
index cdd6e071f49974e9759b212026f96907e859de0d..7512c0b88ecf8fbcf5798e253a4fceb6ed71e888 100644
--- a/media/formats/mp2t/es_parser.cc
+++ b/media/formats/mp2t/es_parser.cc
@@ -28,7 +28,8 @@ EsParser::EsParser()
EsParser::~EsParser() {
}
-bool EsParser::Parse(const uint8* buf, int size,
+bool EsParser::Parse(const uint8_t* buf,
+ int size,
base::TimeDelta pts,
DecodeTimestamp dts) {
DCHECK(buf);
@@ -38,7 +39,7 @@ bool EsParser::Parse(const uint8* buf, int size,
// Link the end of the byte queue with the incoming timing descriptor.
TimingDesc timing_desc(dts, pts);
timing_desc_list_.push_back(
- std::pair<int64, TimingDesc>(es_queue_->tail(), timing_desc));
+ std::pair<int64_t, TimingDesc>(es_queue_->tail(), timing_desc));
}
// Add the incoming bytes to the ES queue.
@@ -52,7 +53,7 @@ void EsParser::Reset() {
ResetInternal();
}
-EsParser::TimingDesc EsParser::GetTimingDescriptor(int64 es_byte_count) {
+EsParser::TimingDesc EsParser::GetTimingDescriptor(int64_t es_byte_count) {
TimingDesc timing_desc;
while (!timing_desc_list_.empty() &&
timing_desc_list_.front().first <= es_byte_count) {

Powered by Google App Engine
This is Rietveld 408576698