Calculate min and max receive timestamps for packets in a video frame
Bug: webrtc:10106
Change-Id: I1d3469abb1e7bb7c91a5912d7b781505526abaca
Reviewed-on: https://webrtc-review.googlesource.com/c/113507
Reviewed-by: Sebastian Jansson <srte@webrtc.org>
Reviewed-by: Philip Eliasson <philipel@webrtc.org>
Commit-Queue: Ilya Nikolaevskiy <ilnik@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#25935}
diff --git a/modules/video_coding/frame_object.cc b/modules/video_coding/frame_object.cc
index 000c36a..750c977 100644
--- a/modules/video_coding/frame_object.cc
+++ b/modules/video_coding/frame_object.cc
@@ -27,11 +27,12 @@
uint16_t last_seq_num,
size_t frame_size,
int times_nacked,
- int64_t received_time)
+ int64_t first_packet_received_time,
+ int64_t last_packet_received_time)
: packet_buffer_(packet_buffer),
first_seq_num_(first_seq_num),
last_seq_num_(last_seq_num),
- received_time_(received_time),
+ last_packet_received_time_(last_packet_received_time),
times_nacked_(times_nacked) {
VCMPacket* first_packet = packet_buffer_->GetPacket(first_seq_num);
RTC_CHECK(first_packet);
@@ -100,9 +101,9 @@
ntp_time_ms_ +
last_packet->video_header.video_timing.network2_timestamp_delta_ms;
}
+ timing_.receive_start_ms = first_packet_received_time;
+ timing_.receive_finish_ms = last_packet_received_time;
timing_.flags = last_packet->video_header.video_timing.flags;
- timing_.receive_start_ms = first_packet->receive_time_ms;
- timing_.receive_finish_ms = last_packet->receive_time_ms;
is_last_spatial_layer = last_packet->markerBit;
}
@@ -131,7 +132,7 @@
}
int64_t RtpFrameObject::ReceivedTime() const {
- return received_time_;
+ return last_packet_received_time_;
}
int64_t RtpFrameObject::RenderTime() const {