Replace virtual RtcpPacket::SetSenderSsrc with base member
to slightly improve binary size. Bug: None Change-Id: I894c7d67a72f4a8077963d2ba0a7bb471a2e7e4d Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/156300 Reviewed-by: Per Kjellander <perkj@webrtc.org> Commit-Queue: Danil Chapovalov <danilchap@webrtc.org> Cr-Commit-Position: refs/heads/master@{#29428}
This commit is contained in:
committed by
Commit Bot
parent
907f1548af
commit
cbbfd08423
@ -34,13 +34,13 @@ constexpr size_t Psfb::kCommonFeedbackLength;
|
||||
// : :
|
||||
|
||||
void Psfb::ParseCommonFeedback(const uint8_t* payload) {
|
||||
sender_ssrc_ = ByteReader<uint32_t>::ReadBigEndian(&payload[0]);
|
||||
media_ssrc_ = ByteReader<uint32_t>::ReadBigEndian(&payload[4]);
|
||||
SetSenderSsrc(ByteReader<uint32_t>::ReadBigEndian(&payload[0]));
|
||||
SetMediaSsrc(ByteReader<uint32_t>::ReadBigEndian(&payload[4]));
|
||||
}
|
||||
|
||||
void Psfb::CreateCommonFeedback(uint8_t* payload) const {
|
||||
ByteWriter<uint32_t>::WriteBigEndian(&payload[0], sender_ssrc_);
|
||||
ByteWriter<uint32_t>::WriteBigEndian(&payload[4], media_ssrc_);
|
||||
ByteWriter<uint32_t>::WriteBigEndian(&payload[0], sender_ssrc());
|
||||
ByteWriter<uint32_t>::WriteBigEndian(&payload[4], media_ssrc());
|
||||
}
|
||||
|
||||
} // namespace rtcp
|
||||
|
||||
Reference in New Issue
Block a user