Skip to content

Commit

Permalink
いろいろ警告が出てたのを修正する
Browse files Browse the repository at this point in the history
  • Loading branch information
melpon committed Oct 12, 2024
1 parent cc7cd87 commit 72341da
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ elseif (SORA_TARGET_OS STREQUAL "ubuntu")
third_party/NvCodec/NvCodec/NvDecoder/NvDecoder.cpp
third_party/NvCodec/NvCodec/NvEncoder/NvEncoderCuda.cpp
PROPERTIES
COMPILE_OPTIONS "-xcuda;--cuda-gpu-arch=sm_35;-std=gnu++17"
COMPILE_OPTIONS "-xcuda;--cuda-gpu-arch=sm_35;-std=gnu++17;-Wno-tautological-constant-out-of-range-compare"
)

# CUDA を要求したくないので libsora.a に含める
Expand Down
2 changes: 1 addition & 1 deletion src/default_video_formats.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ std::vector<webrtc::SdpVideoFormat> GetDefaultVideoFormats(
}
} else if (codec == webrtc::kVideoCodecAV1) {
r.push_back(webrtc::SdpVideoFormat(
cricket::kAv1CodecName, webrtc::SdpVideoFormat::Parameters(),
cricket::kAv1CodecName, webrtc::CodecParameterMap(),
webrtc::LibaomAv1EncoderSupportedScalabilityModes()));
} else if (codec == webrtc::kVideoCodecH264) {
r.push_back(CreateH264Format(webrtc::H264Profile::kProfileBaseline,
Expand Down
10 changes: 5 additions & 5 deletions src/hwenc_vpl/vpl_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@
namespace sora {

static mfxU32 ToMfxCodec(webrtc::VideoCodecType codec) {
return codec == webrtc::kVideoCodecVP8 ? MFX_CODEC_VP8
: codec == webrtc::kVideoCodecVP9 ? MFX_CODEC_VP9
: codec == webrtc::kVideoCodecH264 ? MFX_CODEC_AVC
: codec == webrtc::kVideoCodecH265 ? MFX_CODEC_HEVC
: MFX_CODEC_AV1;
return codec == webrtc::kVideoCodecVP8 ? (mfxU32)MFX_CODEC_VP8
: codec == webrtc::kVideoCodecVP9 ? (mfxU32)MFX_CODEC_VP9
: codec == webrtc::kVideoCodecH264 ? (mfxU32)MFX_CODEC_AVC
: codec == webrtc::kVideoCodecH265 ? (mfxU32)MFX_CODEC_HEVC
: (mfxU32)MFX_CODEC_AV1;
}

static std::string CodecToString(mfxU32 codec) {
Expand Down
14 changes: 7 additions & 7 deletions src/hwenc_vpl/vpl_video_encoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -125,13 +125,13 @@ std::unique_ptr<MFXVideoENCODE> VplVideoEncoderImpl::CreateEncoder(
std::unique_ptr<MFXVideoENCODE> encoder(
new MFXVideoENCODE(GetVplSession(session)));

mfxPlatform platform;
memset(&platform, 0, sizeof(platform));
MFXVideoCORE_QueryPlatform(GetVplSession(session), &platform);
RTC_LOG(LS_VERBOSE) << "--------------- codec=" << CodecToString(codec)
<< " CodeName=" << platform.CodeName
<< " DeviceId=" << platform.DeviceId
<< " MediaAdapterType=" << platform.MediaAdapterType;
// mfxPlatform platform;
// memset(&platform, 0, sizeof(platform));
// MFXVideoCORE_QueryPlatform(GetVplSession(session), &platform);
// RTC_LOG(LS_VERBOSE) << "--------------- codec=" << CodecToString(codec)
// << " CodeName=" << platform.CodeName
// << " DeviceId=" << platform.DeviceId
// << " MediaAdapterType=" << platform.MediaAdapterType;

mfxVideoParam param;
ExtBuffer ext;
Expand Down
2 changes: 1 addition & 1 deletion src/sora_signaling.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1595,7 +1595,7 @@ void SoraSignaling::OnMessage(
return;
}

boost::json::error_code ec;
boost::system::error_code ec;
auto json = boost::json::parse(data, ec);
if (ec) {
RTC_LOG(LS_ERROR) << "JSON Parse Error ec=" << ec.message();
Expand Down

0 comments on commit 72341da

Please sign in to comment.