diff options
author | Roxie Linden <roxie@lindenlab.com> | 2023-09-27 18:42:22 -0700 |
---|---|---|
committer | Roxie Linden <roxie@lindenlab.com> | 2024-02-08 18:34:01 -0800 |
commit | 976f63d6aec1be8a931b2c3648b610322a4d80ab (patch) | |
tree | 0c8fd91cc9fb6eccd2d8cb1d3bc75f3e8df8364d /indra/llwebrtc | |
parent | e147381eb3d977eeed9b45621e2f40d0ff379607 (diff) |
fix mac build
Diffstat (limited to 'indra/llwebrtc')
-rw-r--r-- | indra/llwebrtc/llwebrtc.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/indra/llwebrtc/llwebrtc.cpp b/indra/llwebrtc/llwebrtc.cpp index 3152e1eef6..481d5b940d 100644 --- a/indra/llwebrtc/llwebrtc.cpp +++ b/indra/llwebrtc/llwebrtc.cpp @@ -651,7 +651,7 @@ void LLWebRTCImpl::OnSuccess(webrtc::SessionDescriptionInterface *desc) std::istringstream sdp_stream(sdp); std::ostringstream sdp_mangled_stream; std::string sdp_line; - int opus_payload = 0; + std::string opus_payload; while (std::getline(sdp_stream, sdp_line)) { int bandwidth = 0; @@ -660,9 +660,9 @@ void LLWebRTCImpl::OnSuccess(webrtc::SessionDescriptionInterface *desc) if (std::sscanf(sdp_line.c_str(), "a=rtpmap:%i opus/%i/2", &payload_id, &bandwidth) == 2) { sdp_mangled_stream << sdp_line << "\n"; - opus_payload = payload_id; + opus_payload = std::to_string(payload_id); } - else if (sdp_line.rfind(std::format("a=fmtp:{}", opus_payload)) == 0) + else if (sdp_line.find("a=fmtp:" + opus_payload) == 0) { sdp_mangled_stream << sdp_line << "a=fmtp:" << opus_payload << " minptime=10;useinbandfec=1;stereo=1;sprop-stereo=1;maxplaybackrate=48000\n"; |