Skip to content

Commit

Permalink
設定忘れ
Browse files Browse the repository at this point in the history
  • Loading branch information
melpon committed Jun 13, 2024
1 parent ca09fbf commit 9477daa
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/sora_video_decoder_factory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,17 @@ SoraVideoDecoderFactoryConfig GetDefaultVideoDecoderFactoryConfig(
cuda_context, CudaVideoCodec::H264));
}));
}
if (NvCodecVideoDecoder::IsSupported(cuda_context,
sora::CudaVideoCodec::H265)) {
config.decoders.insert(
config.decoders.begin(),
VideoDecoderConfig(webrtc::kVideoCodecH265,
[cuda_context = cuda_context](auto format) {
return std::unique_ptr<webrtc::VideoDecoder>(
absl::make_unique<NvCodecVideoDecoder>(
cuda_context, CudaVideoCodec::H265));
}));
}
#endif

#if USE_VPL_ENCODER
Expand Down

0 comments on commit 9477daa

Please sign in to comment.