From 2aafa936d2aaa100ad82ae7206606432063e41dd Mon Sep 17 00:00:00 2001 From: torikizi Date: Thu, 3 Oct 2024 10:09:17 +0900 Subject: [PATCH] =?UTF-8?q?v4l2=20=E3=81=A8=20jetson=20=E3=81=AE=20encoder?= =?UTF-8?q?=20=E3=82=82=E5=AF=BE=E8=B1=A1=E3=81=A0=E3=81=A3=E3=81=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/hwenc_v4l2/v4l2_h264_encoder.cpp | 2 +- src/sora-cpp-sdk/src/hwenc_jetson/jetson_video_encoder.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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)); }