Add accessor methods for RTP timestamp of EncodedImage.
Intention is to make the member private, but downstream callers must be updated to use the accessor methods first. Bug: webrtc:9378 Change-Id: I3495bd8d545b7234fbea10abfd14f082caa420b6 Reviewed-on: https://webrtc-review.googlesource.com/82160 Reviewed-by: Magnus Jedvert <magjed@webrtc.org> Reviewed-by: Erik Språng <sprang@webrtc.org> Reviewed-by: Sebastian Jansson <srte@webrtc.org> Reviewed-by: Philip Eliasson <philipel@webrtc.org> Commit-Queue: Niels Moller <nisse@webrtc.org> Cr-Commit-Position: refs/heads/master@{#24352}
This commit is contained in:
@ -115,7 +115,7 @@ bool IvfFileWriter::InitFromFirstFrame(const EncodedImage& encoded_image,
|
||||
height_ = encoded_image._encodedHeight;
|
||||
RTC_CHECK_GT(width_, 0);
|
||||
RTC_CHECK_GT(height_, 0);
|
||||
using_capture_timestamps_ = encoded_image._timeStamp == 0;
|
||||
using_capture_timestamps_ = encoded_image.Timestamp() == 0;
|
||||
|
||||
codec_type_ = codec_type;
|
||||
|
||||
@ -151,7 +151,7 @@ bool IvfFileWriter::WriteFrame(const EncodedImage& encoded_image,
|
||||
|
||||
int64_t timestamp = using_capture_timestamps_
|
||||
? encoded_image.capture_time_ms_
|
||||
: wrap_handler_.Unwrap(encoded_image._timeStamp);
|
||||
: wrap_handler_.Unwrap(encoded_image.Timestamp());
|
||||
if (last_timestamp_ != -1 && timestamp <= last_timestamp_) {
|
||||
RTC_LOG(LS_WARNING) << "Timestamp no increasing: " << last_timestamp_
|
||||
<< " -> " << timestamp;
|
||||
|
||||
Reference in New Issue
Block a user