Skip to content

Commit

Permalink
webrtc::EncodedImage の API の変更に追従する
Browse files Browse the repository at this point in the history
  • Loading branch information
torikizi committed Jan 30, 2024
1 parent 06b969f commit 578ec1f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/dynamic_h264_video_encoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ int32_t DynamicH264VideoEncoder::Encode(

encoded_images_[i]._encodedWidth = configurations_[i].width;
encoded_images_[i]._encodedHeight = configurations_[i].height;
encoded_images_[i].SetTimestamp(input_frame.timestamp());
encoded_images_[i].SetRtpTimestamp(input_frame.timestamp());
encoded_images_[i]._frameType = ConvertToVideoFrameType(info.eFrameType);
encoded_images_[i].SetSpatialIndex(configurations_[i].simulcast_idx);

Expand Down
2 changes: 1 addition & 1 deletion src/nop_video_decoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ int32_t NopVideoDecoder::Decode(const webrtc::EncodedImage& input_image,
webrtc::VideoFrame decoded_image =
webrtc::VideoFrame::Builder()
.set_video_frame_buffer(i420_buffer)
.set_timestamp_rtp(input_image.Timestamp())
.set_timestamp_rtp(input_image.RtpTimestamp())
.build();
callback_->Decoded(decoded_image, absl::nullopt, absl::nullopt);

Expand Down

0 comments on commit 578ec1f

Please sign in to comment.