diff --git a/api/video/encoded_frame.cc b/api/video/encoded_frame.cc index ec8877cb36..f9152b23f1 100644 --- a/api/video/encoded_frame.cc +++ b/api/video/encoded_frame.cc @@ -21,5 +21,9 @@ uint32_t EncodedFrame::Timestamp() const { return timestamp; } +void EncodedFrame::SetTimestamp(uint32_t rtp_timestamp) { + timestamp = rtp_timestamp; +} + } // namespace video_coding } // namespace webrtc diff --git a/api/video/encoded_frame.h b/api/video/encoded_frame.h index 8bfa61e2cc..1b0a26a5fc 100644 --- a/api/video/encoded_frame.h +++ b/api/video/encoded_frame.h @@ -58,8 +58,9 @@ class EncodedFrame : public webrtc::VCMEncodedFrame { virtual bool GetBitstream(uint8_t* destination) const = 0; - // The capture timestamp of this frame. + // The capture timestamp of this frame, using the 90 kHz RTP clock. virtual uint32_t Timestamp() const; + virtual void SetTimestamp(uint32_t rtp_timestamp); // When this frame was received. virtual int64_t ReceivedTime() const = 0;