aboutsummaryrefslogtreecommitdiff
path: root/cast/streaming/offer_messages.cc
diff options
context:
space:
mode:
authorKennan Gumbs <kennangumbs@google.com>2021-07-07 15:54:14 -0400
committerOpenscreen LUCI CQ <openscreen-scoped@luci-project-accounts.iam.gserviceaccount.com>2021-07-14 01:16:32 +0000
commit7e167e2bc4c8c0c650f00b995e1e20cb1ae1f479 (patch)
tree6a84d39db2234179deaac624ec05e0d86c40ceb1 /cast/streaming/offer_messages.cc
parent01c7cc260a28bc0a814249f41825b35e021be271 (diff)
downloadopenscreen-7e167e2bc4c8c0c650f00b995e1e20cb1ae1f479.tar.gz
Remove abseil dependency from HexEncode method
Currently the HexEncode method defined in util/stringprintf.h depends on absl::Span, which is part of abseil. This patch removes the dependency, allowing the method to be more widely used. Bug: b/158660166 Change-Id: I37715271391000b5c61d5a657f604db2bc6c882e Reviewed-on: https://chromium-review.googlesource.com/c/openscreen/+/3001949 Reviewed-by: Jordan Bayles <jophba@chromium.org> Commit-Queue: Jordan Bayles <jophba@chromium.org>
Diffstat (limited to 'cast/streaming/offer_messages.cc')
-rw-r--r--cast/streaming/offer_messages.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/cast/streaming/offer_messages.cc b/cast/streaming/offer_messages.cc
index 3e816026..eeefcc5d 100644
--- a/cast/streaming/offer_messages.cc
+++ b/cast/streaming/offer_messages.cc
@@ -202,8 +202,8 @@ Json::Value Stream::ToJson() const {
"this code assumes Ssrc fits in a Json::UInt");
root["ssrc"] = static_cast<Json::UInt>(ssrc);
root["targetDelay"] = static_cast<int>(target_delay.count());
- root["aesKey"] = HexEncode(aes_key);
- root["aesIvMask"] = HexEncode(aes_iv_mask);
+ root["aesKey"] = HexEncode(aes_key.data(), aes_key.size());
+ root["aesIvMask"] = HexEncode(aes_iv_mask.data(), aes_iv_mask.size());
root["receiverRtcpEventLog"] = receiver_rtcp_event_log;
root["receiverRtcpDscp"] = receiver_rtcp_dscp;
root["timeBase"] = "1/" + std::to_string(rtp_timebase);