Skip to content

Commit

Permalink
Windows と Ubutnu のビルドエラーに対応する
Browse files Browse the repository at this point in the history
  • Loading branch information
torikizi committed Oct 16, 2024
1 parent 4f1a460 commit 06fe012
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 2 additions & 0 deletions include/sora/hwenc_nvcodec/nvcodec_video_decoder.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#ifndef SORA_HWENC_NVCODEC_NVCODEC_VIDEO_DECODER_H_
#define SORA_HWENC_NVCODEC_NVCODEC_VIDEO_DECODER_H_

#include <optional>

// WebRTC
#include <api/video_codecs/video_decoder.h>
#include <common_video/include/video_frame_buffer_pool.h>
Expand Down
1 change: 1 addition & 0 deletions include/sora/hwenc_vpl/vpl_video_decoder.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#define SORA_HWENC_VPL_VPL_VIDEO_DECODER_H_

#include <memory>
#include <optional>

// WebRTC
#include <api/video/video_codec_type.h>
Expand Down
4 changes: 2 additions & 2 deletions src/hwenc_nvcodec/nvcodec_video_decoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ int32_t NvCodecVideoDecoder::Decode(const webrtc::EncodedImage& input_image,
.set_video_frame_buffer(i420_buffer)
.set_timestamp_rtp(pts)
.build();
decode_complete_callback_->Decoded(decoded_image, absl::nullopt,
absl::nullopt);
decode_complete_callback_->Decoded(decoded_image, std::nullopt,
std::nullopt);

decoder_->UnlockFrame(frame);
}
Expand Down
4 changes: 2 additions & 2 deletions src/hwenc_vpl/vpl_video_decoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -310,8 +310,8 @@ int32_t VplVideoDecoderImpl::Decode(const webrtc::EncodedImage& input_image,
.set_video_frame_buffer(i420_buffer)
.set_timestamp_rtp(pts)
.build();
decode_complete_callback_->Decoded(decoded_image, absl::nullopt,
absl::nullopt);
decode_complete_callback_->Decoded(decoded_image, std::nullopt,
std::nullopt);
}

return WEBRTC_VIDEO_CODEC_OK;
Expand Down

0 comments on commit 06fe012

Please sign in to comment.