summaryrefslogtreecommitdiff
path: root/chromium/third_party/webrtc/modules/rtp_rtcp/source/rtp_packet.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/webrtc/modules/rtp_rtcp/source/rtp_packet.cc')
-rw-r--r--chromium/third_party/webrtc/modules/rtp_rtcp/source/rtp_packet.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/chromium/third_party/webrtc/modules/rtp_rtcp/source/rtp_packet.cc b/chromium/third_party/webrtc/modules/rtp_rtcp/source/rtp_packet.cc
index 5f919ff24e1..544dfbf75d4 100644
--- a/chromium/third_party/webrtc/modules/rtp_rtcp/source/rtp_packet.cc
+++ b/chromium/third_party/webrtc/modules/rtp_rtcp/source/rtp_packet.cc
@@ -168,11 +168,11 @@ void RtpPacket::CopyAndZeroMutableExtensions(
break;
}
case RTPExtensionType::kRtpExtensionVideoTiming: {
- // Nullify 3 last entries: packetization delay and 2 network timestamps.
- // Each of them is 2 bytes.
+ // Nullify last entries, starting at pacer delay.
+ // These are set by pacer and SFUs
memset(buffer.data() + extension.offset +
VideoSendTiming::kPacerExitDeltaOffset,
- 0, 6);
+ 0, extension.length - VideoSendTiming::kPacerExitDeltaOffset);
break;
}
case RTPExtensionType::kRtpExtensionTransportSequenceNumber: