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

Unified Diff: webrtc/common_types.h

Issue 2805023002: Add read support of RtpStreamId/RepairedRtpStreamId header extensions. (Closed)
Patch Set: +rtp_header_fuzzer 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/common_types.h
diff --git a/webrtc/common_types.h b/webrtc/common_types.h
index e1a4c77d37adf184bb43b0fd87070d635f54d917..c4e32083868011cb59c71f858facb4d63fdbc0ba 100644
--- a/webrtc/common_types.h
+++ b/webrtc/common_types.h
@@ -717,6 +717,16 @@ struct RTPHeaderExtension {
VideoRotation videoRotation;
PlayoutDelay playout_delay = {-1, -1};
+
+ // For identification of a stream when ssrc is not signaled. See
+ // https://tools.ietf.org/html/draft-ietf-avtext-rid-09
+ // TODO(danilchap): Update url from draft to release version.
+ // Stream id is limited to 16 bytes because it is the maximum length
+ // that can be encoded with one-byte header extensions.
+ size_t stream_id_size = 0;
+ char stream_id[16];
nisse-webrtc 2017/04/10 07:15:27 This is intended as an arbitrary octet string, whi
danilchap 2017/04/10 08:39:41 according to spec valid characters are [0-9A-Za-z]
nisse-webrtc 2017/04/10 09:18:33 Then one alternative would be to always zero-pad t
danilchap 2017/04/10 11:44:16 I've created a dedicated class StreamId and moved
+ size_t repaired_stream_id_size = 0;
+ char repaired_stream_id[16];
};
struct RTPHeader {
« no previous file with comments | « no previous file | webrtc/modules/rtp_rtcp/include/rtp_rtcp_defines.h » ('j') | webrtc/modules/rtp_rtcp/source/rtp_utility.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698