[fix] fix decoding error caused by padding packets

This commit is contained in:
dijunkun
2025-03-18 15:11:10 +08:00
parent fa667df1e0
commit 2d59c74669
10 changed files with 56 additions and 41 deletions

View File

@@ -239,9 +239,9 @@ void IceTransportController::UpdateNetworkAvaliablity(bool network_available) {
}
int IceTransportController::OnReceiveVideoRtpPacket(const char* data,
size_t size, bool padding) {
size_t size) {
if (video_channel_receive_) {
return video_channel_receive_->OnReceiveRtpPacket(data, size, padding);
return video_channel_receive_->OnReceiveRtpPacket(data, size);
}
return -1;