Adopt absl::string_view in modules/rtp_rtcp
Bug: webrtc:13579 Change-Id: Ic4e1431bedc69492358cb2e3749b50a941306f44 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/262250 Reviewed-by: Erik Språng <sprang@webrtc.org> Commit-Queue: Ali Tofigh <alito@webrtc.org> Cr-Commit-Position: refs/heads/main@{#36887}
This commit is contained in:
committed by
WebRTC LUCI CQ
parent
76d84f122e
commit
d14e8894fc
@ -16,6 +16,7 @@
|
||||
#include <cstdint>
|
||||
#include <limits>
|
||||
|
||||
#include "absl/strings/string_view.h"
|
||||
#include "modules/rtp_rtcp/include/rtp_cvo.h"
|
||||
#include "modules/rtp_rtcp/source/byte_io.h"
|
||||
// TODO(bug:9855) Move kNoSpatialIdx from vp9_globals.h to common_constants
|
||||
@ -800,7 +801,7 @@ bool BaseRtpStringExtension::Parse(rtc::ArrayView<const uint8_t> data,
|
||||
}
|
||||
|
||||
bool BaseRtpStringExtension::Write(rtc::ArrayView<uint8_t> data,
|
||||
const std::string& str) {
|
||||
absl::string_view str) {
|
||||
if (str.size() > kMaxValueSizeBytes) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user