diff --git a/src/hwenc_v4l2/v4l2_h264_encoder.cpp b/src/hwenc_v4l2/v4l2_h264_encoder.cpp index 5b33eea0..4db30087 100644 --- a/src/hwenc_v4l2/v4l2_h264_encoder.cpp +++ b/src/hwenc_v4l2/v4l2_h264_encoder.cpp @@ -262,7 +262,7 @@ int32_t V4L2H264Encoder::Encode( auto native_buffer = static_cast(frame_buffer.get()); jpeg_decoder_->Decode( native_buffer->data().get(), native_buffer->size(), - input_frame.timestamp(), + input_frame.rtp_timestamp(), [this, force_key_frame, input_frame]( rtc::scoped_refptr buffer, int64_t timestamp_rtp) { diff --git a/src/sora-cpp-sdk/src/hwenc_jetson/jetson_video_encoder.cpp b/src/sora-cpp-sdk/src/hwenc_jetson/jetson_video_encoder.cpp index 9f5c66b8..dec3209c 100644 --- a/src/sora-cpp-sdk/src/hwenc_jetson/jetson_video_encoder.cpp +++ b/src/sora-cpp-sdk/src/hwenc_jetson/jetson_video_encoder.cpp @@ -627,7 +627,7 @@ int32_t JetsonVideoEncoder::Encode( frame_params_.push(absl::make_unique( frame_buffer->width(), frame_buffer->height(), input_frame.render_time_ms(), input_frame.ntp_time_ms(), - input_frame.timestamp_us(), input_frame.timestamp(), + input_frame.timestamp_us(), input_frame.rtp_timestamp(), input_frame.rotation(), input_frame.color_space(), decoder)); }