feat delete unused code

This commit is contained in:
tqcq 2024-10-03 09:52:48 +08:00
parent cfa3bec929
commit 68955415ed
2 changed files with 2 additions and 14 deletions

View File

@ -586,17 +586,6 @@ RTPManager::ModifyUDPSEIPacket(RTPDecoder::DecodedPacket packet, void *sei_begin
} }
} }
void
RTPManager::TryInsertSEI(RTPPacket::Ptr packet)
{
// TOOD 插入SEI在I帧头部
if (packet->payload_type() == Frame::kUDP) {
packet->InsertPacketAtBefore(nullptr, 0);
} else {
// assert(false);
}
}
void void
RTPManager::OnSigned(Signer::SignedPacket::Ptr signed_packet) RTPManager::OnSigned(Signer::SignedPacket::Ptr signed_packet)
{ {
@ -624,7 +613,8 @@ RTPManager::FetchSignData()
{ {
std::lock_guard<std::mutex> _(_signed_packet_lock); std::lock_guard<std::mutex> _(_signed_packet_lock);
auto res = _signed_packet; auto res = _signed_packet;
_signed_packet.reset(); // 由于SPS插入签名时信息不足所以这里保留签名
// _signed_packet.reset();
return res; return res;
} }

View File

@ -53,8 +53,6 @@ private:
void ModifyTCPSEIPacket(RTPDecoder::DecodedPacket packet, void *sei_begin, void *sei_end); void ModifyTCPSEIPacket(RTPDecoder::DecodedPacket packet, void *sei_begin, void *sei_end);
void ModifyUDPSEIPacket(RTPDecoder::DecodedPacket packet, void *sei_begin, void *sei_end); void ModifyUDPSEIPacket(RTPDecoder::DecodedPacket packet, void *sei_begin, void *sei_end);
void TryInsertSEI(RTPPacket::Ptr);
private: private:
// NALU 组包回调 // NALU 组包回调
void OnRTPDecoded(RTPDecoder::DecodedPacket packet); void OnRTPDecoded(RTPDecoder::DecodedPacket packet);