Index: webrtc/video/rtp_video_stream_receiver.cc |
diff --git a/webrtc/video/rtp_video_stream_receiver.cc b/webrtc/video/rtp_video_stream_receiver.cc |
index f1e530d3a7586dfac75fb06c192755ec4d75389c..6a55a3dc2a54e817b967be99a30ef34b320a830c 100644 |
--- a/webrtc/video/rtp_video_stream_receiver.cc |
+++ b/webrtc/video/rtp_video_stream_receiver.cc |
@@ -10,8 +10,8 @@ |
#include "webrtc/video/rtp_video_stream_receiver.h" |
-#include <vector> |
#include <utility> |
+#include <vector> |
#include "webrtc/base/checks.h" |
#include "webrtc/base/location.h" |
@@ -239,6 +239,7 @@ int32_t RtpVideoStreamReceiver::OnReceivedPayloadData( |
VCMPacket packet(payload_data, payload_size, rtp_header_with_ntp); |
packet.timesNacked = |
nack_module_ ? nack_module_->OnReceivedPacket(packet) : -1; |
+ packet.receive_time_ms = clock_->TimeInMilliseconds(); |
// In the case of a video stream without picture ids and no rtx the |
// RtpFrameReferenceFinder will need to know about padding to |
@@ -520,6 +521,11 @@ void RtpVideoStreamReceiver::NotifyReceiverOfFecPacket( |
if (header.extension.hasVideoContentType) { |
rtp_header.type.Video.content_type = header.extension.videoContentType; |
} |
+ rtp_header.type.Video.video_timing = {0u, 0u, 0u, 0u, 0u, 0u, false}; |
+ if (header.extension.has_video_timing) { |
+ rtp_header.type.Video.video_timing = header.extension.video_timing; |
+ rtp_header.type.Video.video_timing.is_timing_frame = true; |
+ } |
rtp_header.type.Video.playout_delay = header.extension.playout_delay; |
OnReceivedPayloadData(nullptr, 0, &rtp_header); |