Skip to content

Commit

Permalink
v4l2 と jetson の encoder も対象だった
Browse files Browse the repository at this point in the history
  • Loading branch information
torikizi committed Oct 3, 2024
1 parent 7e69acb commit 2aafa93
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/hwenc_v4l2/v4l2_h264_encoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ int32_t V4L2H264Encoder::Encode(
auto native_buffer = static_cast<V4L2NativeBuffer*>(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<webrtc::VideoFrameBuffer> buffer,
int64_t timestamp_rtp) {
Expand Down
2 changes: 1 addition & 1 deletion src/sora-cpp-sdk/src/hwenc_jetson/jetson_video_encoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,7 @@ int32_t JetsonVideoEncoder::Encode(
frame_params_.push(absl::make_unique<FrameParams>(
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));
}

Expand Down

0 comments on commit 2aafa93

Please sign in to comment.