Use Timestamp to represent packet receive timestamps
Before this CL, timestamps of received packets were rounded to the nearest millisecond and stored as int64_t. Due to the rounding it sometimes happened that timestamps later in the pipeline that are not rounded seem to occur even before the video frame was received. Change-Id: I92d8f3540b23baae2d4a1dc6a7cb3f58bcdaad18 Bug: webrtc:12722 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/216398 Reviewed-by: Chen Xing <chxg@google.com> Reviewed-by: Harald Alvestrand <hta@webrtc.org> Commit-Queue: Johannes Kron <kron@webrtc.org> Cr-Commit-Position: refs/heads/master@{#33916}
This commit is contained in:
committed by
WebRTC LUCI CQ
parent
c27c047e3e
commit
f7de74c58c
@ -34,7 +34,7 @@ VCMPacket::VCMPacket(const uint8_t* ptr,
|
||||
const RTPHeader& rtp_header,
|
||||
const RTPVideoHeader& videoHeader,
|
||||
int64_t ntp_time_ms,
|
||||
int64_t receive_time_ms)
|
||||
Timestamp receive_time)
|
||||
: payloadType(rtp_header.payloadType),
|
||||
timestamp(rtp_header.timestamp),
|
||||
ntp_time_ms_(ntp_time_ms),
|
||||
@ -47,7 +47,7 @@ VCMPacket::VCMPacket(const uint8_t* ptr,
|
||||
insertStartCode(videoHeader.codec == kVideoCodecH264 &&
|
||||
videoHeader.is_first_packet_in_frame),
|
||||
video_header(videoHeader),
|
||||
packet_info(rtp_header, receive_time_ms) {
|
||||
packet_info(rtp_header, receive_time) {
|
||||
if (is_first_packet_in_frame() && markerBit) {
|
||||
completeNALU = kNaluComplete;
|
||||
} else if (is_first_packet_in_frame()) {
|
||||
|
||||
Reference in New Issue
Block a user