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

Unified Diff: media/formats/mp2t/es_parser.h

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.h
diff --git a/media/formats/mp2t/es_parser.h b/media/formats/mp2t/es_parser.h
index b22fe5d16983c88610c2f6d9459c31c66d08a97b..591c115a075e26ecd1312709df2ff3bc7f83ac5e 100644
--- a/media/formats/mp2t/es_parser.h
+++ b/media/formats/mp2t/es_parser.h
@@ -8,7 +8,6 @@
#include <list>
#include <utility>
-#include "base/basictypes.h"
#include "base/callback.h"
#include "base/memory/ref_counted.h"
#include "base/time/time.h"
@@ -31,7 +30,8 @@ class MEDIA_EXPORT EsParser {
// ES parsing.
// Should use kNoTimestamp when a timestamp is not valid.
- bool Parse(const uint8* buf, int size,
+ bool Parse(const uint8_t* buf,
+ int size,
base::TimeDelta pts,
DecodeTimestamp dts);
@@ -62,7 +62,7 @@ class MEDIA_EXPORT EsParser {
// This timing descriptor and all the ones that come before (in stream order)
// are removed from list |timing_desc_list_|.
// If no timing descriptor is found, then the default TimingDesc is returned.
- TimingDesc GetTimingDescriptor(int64 es_byte_count);
+ TimingDesc GetTimingDescriptor(int64_t es_byte_count);
// Bytes of the ES stream that have not been emitted yet.
scoped_ptr<media::OffsetByteQueue> es_queue_;
@@ -79,7 +79,7 @@ class MEDIA_EXPORT EsParser {
// in Annex A of Rec. ITU-T H.264 | ISO/IEC 14496-10 video, if a PTS is
// present in the PES packet header, it shall refer to the first AVC access
// unit that commences in this PES packet.
- std::list<std::pair<int64, TimingDesc> > timing_desc_list_;
+ std::list<std::pair<int64_t, TimingDesc>> timing_desc_list_;
DISALLOW_COPY_AND_ASSIGN(EsParser);
};

Powered by Google App Engine
This is Rietveld 408576698