fix gcc for linux compile error

This commit is contained in:
xgj 2021-05-08 22:25:56 +08:00
parent 783321e74e
commit 7f917211e4
2 changed files with 3 additions and 3 deletions

View File

@ -125,7 +125,7 @@ static bool isOneByteExt(){
} }
template<> template<>
static bool isOneByteExt<RtpExtOneByte>(){ bool isOneByteExt<RtpExtOneByte>(){
return true; return true;
} }

View File

@ -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); auto rr = it->second->rtcp_context_recv->createRtcpRR(sr->items.ssrc, sr->ssrc);
sendRtcpPacket(rr->data(), rr->size(), true); sendRtcpPacket(rr->data(), rr->size(), true);
} else { } else {
WarnL << "未识别的sr rtcp包:" << sr->ssrc; WarnL << "未识别的sr rtcp包:" << (uint32_t)sr->ssrc;
} }
break; 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); auto sr = it->second->rtcp_context_send->createRtcpSR(rr->items.ssrc);
sendRtcpPacket(sr->data(), sr->size(), true); sendRtcpPacket(sr->data(), sr->size(), true);
} else { } else {
WarnL << "未识别的rr rtcp包:" << rr->ssrc; WarnL << "未识别的rr rtcp包:" << (uint32_t)rr->ssrc;
} }
break; break;
} }