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

Unified Diff: media/cast/net/rtp/rtp_packetizer.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/cast/net/rtp/rtp_packetizer.h
diff --git a/media/cast/net/rtp/rtp_packetizer.h b/media/cast/net/rtp/rtp_packetizer.h
index 034a74a2a50decfec20c0e7b277f616a276f502d..e69a80ce322468a47a70f2b03bbbcb59c523e6f9 100644
--- a/media/cast/net/rtp/rtp_packetizer.h
+++ b/media/cast/net/rtp/rtp_packetizer.h
@@ -27,8 +27,8 @@ struct RtpPacketizerConfig {
// General.
int payload_type;
- uint16 max_payload_length;
- uint16 sequence_number;
+ uint16_t max_payload_length;
+ uint16_t sequence_number;
// SSRC.
unsigned int ssrc;
@@ -48,21 +48,23 @@ class RtpPacketizer {
// Return the next sequence number, and increment by one. Enables unique
// incremental sequence numbers for every packet (including retransmissions).
- uint16 NextSequenceNumber();
+ uint16_t NextSequenceNumber();
size_t send_packet_count() const { return send_packet_count_; }
size_t send_octet_count() const { return send_octet_count_; }
private:
- void BuildCommonRTPheader(Packet* packet, bool marker_bit, uint32 time_stamp);
+ void BuildCommonRTPheader(Packet* packet,
+ bool marker_bit,
+ uint32_t time_stamp);
RtpPacketizerConfig config_;
PacedSender* const transport_; // Not owned by this class.
PacketStorage* packet_storage_;
- uint16 sequence_number_;
- uint32 rtp_timestamp_;
- uint16 packet_id_;
+ uint16_t sequence_number_;
+ uint32_t rtp_timestamp_;
+ uint16_t packet_id_;
size_t send_packet_count_;
size_t send_octet_count_;

Powered by Google App Engine
This is Rietveld 408576698