diff options
author | Roxie Linden <roxie@lindenlab.com> | 2023-09-26 19:44:10 -0700 |
---|---|---|
committer | Roxie Linden <roxie@lindenlab.com> | 2024-02-08 18:34:01 -0800 |
commit | 861f21957ef164831f57fbd59fce55cb5eaca641 (patch) | |
tree | f933f56ae1af8dfad7d4a33f9168aac8520a7204 /indra/llwebrtc | |
parent | 819a715a59b9926f64ba62b28299849868e577e2 (diff) |
fix osx build incompatibility
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 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"; |