diff --git a/src/hwenc_nvcodec/nvcodec_h264_encoder.cpp b/src/hwenc_nvcodec/nvcodec_h264_encoder.cpp index 53440e7f..01418039 100644 --- a/src/hwenc_nvcodec/nvcodec_h264_encoder.cpp +++ b/src/hwenc_nvcodec/nvcodec_h264_encoder.cpp @@ -341,7 +341,7 @@ int32_t NvCodecH264EncoderImpl::Encode( ? webrtc::VideoContentType::SCREENSHARE : webrtc::VideoContentType::UNSPECIFIED; encoded_image_.timing_.flags = webrtc::VideoSendTiming::kInvalid; - encoded_image_.SetTimestamp(frame.timestamp()); + encoded_image_.SetRtpTimestamp(frame.timestamp()); encoded_image_.ntp_time_ms_ = frame.ntp_time_ms(); encoded_image_.capture_time_ms_ = frame.render_time_ms(); encoded_image_.rotation_ = frame.rotation(); diff --git a/src/hwenc_nvcodec/nvcodec_video_decoder.cpp b/src/hwenc_nvcodec/nvcodec_video_decoder.cpp index 4fb330b0..cd15b418 100644 --- a/src/hwenc_nvcodec/nvcodec_video_decoder.cpp +++ b/src/hwenc_nvcodec/nvcodec_video_decoder.cpp @@ -93,7 +93,7 @@ int32_t NvCodecVideoDecoder::Decode(const webrtc::EncodedImage& input_image, output_info_ = true; } - uint32_t pts = input_image.Timestamp(); + uint32_t pts = input_image.RtpTimestamp(); for (int i = 0; i < frame_count; i++) { auto* frame = decoder_->GetLockedFrame(); diff --git a/src/hwenc_vpl/vpl_video_decoder.cpp b/src/hwenc_vpl/vpl_video_decoder.cpp index c18c53a6..7367e10f 100644 --- a/src/hwenc_vpl/vpl_video_decoder.cpp +++ b/src/hwenc_vpl/vpl_video_decoder.cpp @@ -223,7 +223,7 @@ int32_t VplVideoDecoderImpl::Decode(const webrtc::EncodedImage& input_image, } // これだとキューイングしたデータとずれるので、本当は surface と一緒に保存して利用するべき - uint64_t pts = input_image.Timestamp(); + uint64_t pts = input_image.RtpTimestamp(); mfxStatus sts; mfxSyncPoint syncp; diff --git a/src/hwenc_vpl/vpl_video_encoder.cpp b/src/hwenc_vpl/vpl_video_encoder.cpp index 2d8598ca..1dcdb2ed 100644 --- a/src/hwenc_vpl/vpl_video_encoder.cpp +++ b/src/hwenc_vpl/vpl_video_encoder.cpp @@ -451,7 +451,7 @@ int32_t VplVideoEncoderImpl::Encode( ? webrtc::VideoContentType::SCREENSHARE : webrtc::VideoContentType::UNSPECIFIED; encoded_image_.timing_.flags = webrtc::VideoSendTiming::kInvalid; - encoded_image_.SetTimestamp(frame.timestamp()); + encoded_image_.SetRtpTimestamp(frame.timestamp()); encoded_image_.ntp_time_ms_ = frame.ntp_time_ms(); encoded_image_.capture_time_ms_ = frame.render_time_ms(); encoded_image_.rotation_ = frame.rotation();