Index: webrtc/video/payload_router.cc |
diff --git a/webrtc/video/payload_router.cc b/webrtc/video/payload_router.cc |
index 52e9d46ebb4f594c4fbfa3d96b1753e0717dabdb..127f633dd92aceaffb6f090c514170811e0c8682 100644 |
--- a/webrtc/video/payload_router.cc |
+++ b/webrtc/video/payload_router.cc |
@@ -130,6 +130,21 @@ EncodedImageCallback::Result PayloadRouter::OnEncodedImage( |
CopyCodecSpecific(codec_specific_info, &rtp_video_header); |
rtp_video_header.rotation = encoded_image.rotation_; |
rtp_video_header.content_type = encoded_image.content_type_; |
+ if (encoded_image.timing_.is_timing_frame) { |
+ rtp_video_header.video_timing.encode_start_ms_delta = |
+ VideoTiming::GetDeltaCappedMs(encoded_image.capture_time_ms_, |
+ encoded_image.timing_.encode_start_ms); |
holmer
2017/06/19 07:48:26
Is there a reason why the delta is computed here a
ilnik
2017/06/19 08:41:51
Reason is: we have the same data-structure to stor
holmer
2017/06/19 12:17:47
Acknowledged.
|
+ rtp_video_header.video_timing.encode_finish_ms_delta = |
+ VideoTiming::GetDeltaCappedMs(encoded_image.capture_time_ms_, |
+ encoded_image.timing_.encode_finish_ms); |
+ rtp_video_header.video_timing.packetization_finish_ms_delta = 0; |
+ rtp_video_header.video_timing.pacer_exit_ms_delta = 0; |
+ rtp_video_header.video_timing.network_timstamp_ms_delta = 0; |
+ rtp_video_header.video_timing.network2_timstamp_ms_delta = 0; |
holmer
2017/06/19 07:48:26
Maybe add a default ctor which initializes everyth
ilnik
2017/06/19 08:41:51
Tried that, it causes some weird problems with RTP
holmer
2017/06/19 12:17:47
Acknowledged.
|
+ rtp_video_header.video_timing.is_timing_frame = true; |
+ } else { |
+ rtp_video_header.video_timing.is_timing_frame = false; |
+ } |
rtp_video_header.playout_delay = encoded_image.playout_delay_; |
int stream_index = rtp_video_header.simulcastIdx; |