summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoxie Linden <roxie@lindenlab.com>2023-09-26 19:44:10 -0700
committerRoxie Linden <roxie@lindenlab.com>2024-02-22 23:11:34 -0800
commitf6f45bafc60f0f275d7e0e5aee81ea2610ac5352 (patch)
tree4c41721ba394873ee99433533c3f143ae9dec8ab
parentf6becec955bc673c7e0014eb89197fef9128a405 (diff)
fix osx build incompatibility
-rw-r--r--indra/llwebrtc/llwebrtc.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/indra/llwebrtc/llwebrtc.cpp b/indra/llwebrtc/llwebrtc.cpp
index e3fd68d35b..b02354cbac 100644
--- a/indra/llwebrtc/llwebrtc.cpp
+++ b/indra/llwebrtc/llwebrtc.cpp
@@ -674,7 +674,7 @@ void LLWebRTCImpl::OnSetLocalDescriptionComplete(webrtc::RTCError error)
std::istringstream sdp_stream(sdp);
std::ostringstream sdp_mangled_stream;
std::string sdp_line;
- int opus_payload = 0;
+ char opus_payload[10];
while (std::getline(sdp_stream, sdp_line)) {
int bandwidth = 0;
int payload_id = 0;
@@ -682,9 +682,9 @@ void LLWebRTCImpl::OnSetLocalDescriptionComplete(webrtc::RTCError error)
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;
+ sprintf(opus_payload,"%d",payload_id);
}
- else if (sdp_line.rfind(std::format("a=fmtp:{}", opus_payload)) == 0)
+ else if (sdp_line.rfind(std::string("a=fmtp:") + opus_payload) == 0)
{
sdp_mangled_stream << sdp_line << "a=fmtp:" << opus_payload
<< " stereo=1;sprop-stereo=0;minptime=10;useinbandfec=1;maxplaybackrate=48000\n";