Index: webrtc/modules/rtp_rtcp/source/rtp_sender.cc |
diff --git a/webrtc/modules/rtp_rtcp/source/rtp_sender.cc b/webrtc/modules/rtp_rtcp/source/rtp_sender.cc |
index 00edd18f3fafbe03120681f8fa3af1800d3376e1..cdd707978165d3395a993389502c1eaa7935da0b 100644 |
--- a/webrtc/modules/rtp_rtcp/source/rtp_sender.cc |
+++ b/webrtc/modules/rtp_rtcp/source/rtp_sender.cc |
@@ -743,6 +743,9 @@ bool RTPSender::PrepareAndSendPacket(std::unique_ptr<RtpPacketToSend> packet, |
packet_to_send->SetExtension<AbsoluteSendTime>( |
AbsoluteSendTime::MsTo24Bits(now_ms)); |
+ if (packet_to_send->HasExtension<VideoTimingExtension>()) |
+ packet_to_send->set_pacer_exit_time_ms(now_ms); |
+ |
PacketOptions options; |
if (UpdateTransportSequenceNumber(packet_to_send, &options.packet_id)) { |
AddPacketToTransportFeedback(options.packet_id, *packet_to_send, |
@@ -830,6 +833,8 @@ bool RTPSender::SendToNetwork(std::unique_ptr<RtpPacketToSend> packet, |
if (packet->capture_time_ms() > 0) { |
packet->SetExtension<TransmissionOffset>( |
kTimestampTicksPerMs * (now_ms - packet->capture_time_ms())); |
+ if (packet->HasExtension<VideoTimingExtension>()) |
+ packet->set_pacer_exit_time_ms(now_ms); |
} |
packet->SetExtension<AbsoluteSendTime>(AbsoluteSendTime::MsTo24Bits(now_ms)); |