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 { |