Remove obsolete DCHECK in RtpPacket::CopyHeaderFrom
This check was important when header bytes were copied from source packet to destination, but current implementation (new line 123) slices the source packet, making capacity of the destination packet irrelevant. Bug: b/189015462 Change-Id: I7e649cb7dfc6ba0fbe989c943e6515ab0da05fef Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/219695 Reviewed-by: Erik Språng <sprang@webrtc.org> Commit-Queue: Danil Chapovalov <danilchap@webrtc.org> Cr-Commit-Position: refs/heads/master@{#34110}
This commit is contained in:
parent
6396b48b18
commit
02c0295a98
@ -111,8 +111,6 @@ std::vector<uint32_t> RtpPacket::Csrcs() const {
|
||||
}
|
||||
|
||||
void RtpPacket::CopyHeaderFrom(const RtpPacket& packet) {
|
||||
RTC_DCHECK_GE(capacity(), packet.headers_size());
|
||||
|
||||
marker_ = packet.marker_;
|
||||
payload_type_ = packet.payload_type_;
|
||||
sequence_number_ = packet.sequence_number_;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user