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

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

Issue 2805023002: Add read support of RtpStreamId/RepairedRtpStreamId header extensions. (Closed)
Patch Set: . Created 3 years, 8 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
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 1b311e64190cd80eb146ddba3628ac67a503d30d..402f6f46844e4d766410f28c8d0e382cf4c74785 100644
--- a/webrtc/modules/rtp_rtcp/source/rtp_header_extensions.cc
+++ b/webrtc/modules/rtp_rtcp/source/rtp_header_extensions.cc
@@ -215,4 +215,29 @@ bool PlayoutDelayLimits::Write(uint8_t* data,
return true;
}
+// RtpStreamId.
+constexpr RTPExtensionType RtpStreamId::kId;
+constexpr uint8_t RtpStreamId::kValueSizeBytes;
+constexpr const char* RtpStreamId::kUri;
+
+bool RtpStreamId::Parse(rtc::ArrayView<const uint8_t> data, std::string* rid) {
+ if (data.empty())
+ return false;
+ rid->assign(reinterpret_cast<const char*>(data.data()), data.size());
+ return true;
+}
+
+// RepairRtpStreamId.
+constexpr RTPExtensionType RepairRtpStreamId::kId;
+constexpr uint8_t RepairRtpStreamId::kValueSizeBytes;
+constexpr const char* RepairRtpStreamId::kUri;
+
+bool RepairRtpStreamId::Parse(rtc::ArrayView<const uint8_t> data,
+ std::string* rid) {
+ if (data.empty())
+ return false;
+ rid->assign(reinterpret_cast<const char*>(data.data()), data.size());
+ return true;
+}
+
} // namespace webrtc

Powered by Google App Engine
This is Rietveld 408576698