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

Unified Diff: webrtc/modules/rtp_rtcp/source/rtp_header_extensions.cc

Issue 1945773002: RtpPacketHistory rewritten to use RtpPacket class. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: rebase Created 4 years, 4 months 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
« no previous file with comments | « webrtc/modules/rtp_rtcp/source/rtp_header_extensions.h ('k') | webrtc/modules/rtp_rtcp/source/rtp_packet.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/modules/rtp_rtcp/source/rtp_header_extensions.cc
diff --git a/webrtc/modules/rtp_rtcp/source/rtp_header_extensions.cc b/webrtc/modules/rtp_rtcp/source/rtp_header_extensions.cc
index a551b15617b55677efdf80050426d077b41af311..441c548906b07cc646faa08844dfc0d03f18832b 100644
--- a/webrtc/modules/rtp_rtcp/source/rtp_header_extensions.cc
+++ b/webrtc/modules/rtp_rtcp/source/rtp_header_extensions.cc
@@ -124,14 +124,14 @@ bool TransmissionOffset::IsSupportedFor(MediaType type) {
return false;
}
-bool TransmissionOffset::Parse(const uint8_t* data, int32_t* value) {
- *value = ByteReader<int32_t, 3>::ReadBigEndian(data);
+bool TransmissionOffset::Parse(const uint8_t* data, int32_t* rtp_time) {
+ *rtp_time = ByteReader<int32_t, 3>::ReadBigEndian(data);
return true;
}
-bool TransmissionOffset::Write(uint8_t* data, int64_t value) {
- RTC_CHECK_LE(value, 0x00ffffff);
- ByteWriter<int32_t, 3>::WriteBigEndian(data, value);
+bool TransmissionOffset::Write(uint8_t* data, int32_t rtp_time) {
+ RTC_DCHECK_LE(rtp_time, 0x00ffffff);
+ ByteWriter<int32_t, 3>::WriteBigEndian(data, rtp_time);
return true;
}
« no previous file with comments | « webrtc/modules/rtp_rtcp/source/rtp_header_extensions.h ('k') | webrtc/modules/rtp_rtcp/source/rtp_packet.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698