From 7f917211e48ac9b2ede2f74175257f0f337bccca Mon Sep 17 00:00:00 2001 From: xgj Date: Sat, 8 May 2021 22:25:56 +0800 Subject: [PATCH] fix gcc for linux compile error --- webrtc/RtpExt.cpp | 2 +- webrtc/WebRtcTransport.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/webrtc/RtpExt.cpp b/webrtc/RtpExt.cpp index 5ea0192d..62cdc830 100644 --- a/webrtc/RtpExt.cpp +++ b/webrtc/RtpExt.cpp @@ -125,7 +125,7 @@ static bool isOneByteExt(){ } template<> -static bool isOneByteExt(){ +bool isOneByteExt(){ return true; } diff --git a/webrtc/WebRtcTransport.cpp b/webrtc/WebRtcTransport.cpp index e32fac33..db01b69c 100644 --- a/webrtc/WebRtcTransport.cpp +++ b/webrtc/WebRtcTransport.cpp @@ -576,7 +576,7 @@ void WebRtcTransportImp::onRtcp(const char *buf, size_t len) { auto rr = it->second->rtcp_context_recv->createRtcpRR(sr->items.ssrc, sr->ssrc); sendRtcpPacket(rr->data(), rr->size(), true); } else { - WarnL << "未识别的sr rtcp包:" << sr->ssrc; + WarnL << "未识别的sr rtcp包:" << (uint32_t)sr->ssrc; } break; } @@ -589,7 +589,7 @@ void WebRtcTransportImp::onRtcp(const char *buf, size_t len) { auto sr = it->second->rtcp_context_send->createRtcpSR(rr->items.ssrc); sendRtcpPacket(sr->data(), sr->size(), true); } else { - WarnL << "未识别的rr rtcp包:" << rr->ssrc; + WarnL << "未识别的rr rtcp包:" << (uint32_t)rr->ssrc; } break; }