-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
libwebrtc を m124.6367.3.1 にあげる #98
Changes from 13 commits
90207d6
4861e13
01ad4ff
ba5bb61
78843b9
cac00ea
01f5ba6
7e8622b
3e789b1
ba0da74
9d5eb9b
ecec7db
d95ab15
2ae98b7
fdb7947
7a21aa4
35b1eb6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
SORA_CPP_SDK_VERSION=2024.6.1 | ||
WEBRTC_BUILD_VERSION=m123.6312.3.5 | ||
BOOST_VERSION=1.85.0 | ||
WEBRTC_BUILD_VERSION=m124.6367.3.1 | ||
BOOST_VERSION=1.84.0 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Boost のバージョンが下がってる…? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. こちらですが、現在 Sora C++ SDK でリリースされている最新の Boost のバージョンが 1.84.0 なため、 この PR のマージにもう少し時間がかかるようであれば、 develop ブランチを直接修正します There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. あやまってあげてしまってるってのがよくわからんのだが。 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. サンプルのビルド時は Sora C++ SDK のリリースに含まれる Boost のバイナリを取得してビルドする挙動がデフォルトとなっています。 0997648 でサンプルの BOOST_VERSION を 1.84.0 に戻しました |
||
CMAKE_VERSION=3.28.1 | ||
SDL2_VERSION=2.30.3 | ||
CLI11_VERSION=v2.4.2 |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
|
||
// WebRTC | ||
#include <absl/strings/match.h> | ||
#include <api/environment/environment_factory.h> | ||
#include <api/video_codecs/sdp_video_format.h> | ||
#include <media/base/codec.h> | ||
#include <media/base/media_constants.h> | ||
|
@@ -67,8 +68,8 @@ SoraVideoDecoderFactory::GetSupportedFormats() const { | |
return r; | ||
} | ||
|
||
std::unique_ptr<webrtc::VideoDecoder> | ||
SoraVideoDecoderFactory::CreateVideoDecoder( | ||
std::unique_ptr<webrtc::VideoDecoder> SoraVideoDecoderFactory::Create( | ||
const webrtc::Environment& env, | ||
const webrtc::SdpVideoFormat& format) { | ||
webrtc::VideoCodecType specified_codec = | ||
webrtc::PayloadStringToCodecType(format.name); | ||
|
@@ -84,10 +85,10 @@ SoraVideoDecoderFactory::CreateVideoDecoder( | |
std::vector<webrtc::SdpVideoFormat> supported_formats = formats_[n++]; | ||
|
||
if (enc.factory != nullptr) { | ||
create_video_decoder = | ||
[factory = enc.factory.get()](const webrtc::SdpVideoFormat& format) { | ||
return factory->CreateVideoDecoder(format); | ||
}; | ||
create_video_decoder = [factory = enc.factory.get(), | ||
&env](const webrtc::SdpVideoFormat& format) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 参照でも動作するとは思いますけど、参照にする理由もないので There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 2ae98b7 で修正しました |
||
return factory->Create(env, format); | ||
}; | ||
} else if (enc.create_video_decoder != nullptr) { | ||
create_video_decoder = enc.create_video_decoder; | ||
} | ||
|
@@ -250,10 +251,12 @@ SoraVideoDecoderFactoryConfig GetDefaultVideoDecoderFactoryConfig( | |
} | ||
|
||
SoraVideoDecoderFactoryConfig GetSoftwareOnlyVideoDecoderFactoryConfig() { | ||
// SDK の外部から webrtc::Environment を設定したくなるまで、ここで初期化する | ||
auto env = webrtc::CreateEnvironment(); | ||
SoraVideoDecoderFactoryConfig config; | ||
config.decoders.push_back(VideoDecoderConfig( | ||
webrtc::kVideoCodecVP8, | ||
[](auto format) { return webrtc::VP8Decoder::Create(); })); | ||
[&env](auto format) { return webrtc::CreateVp8Decoder(env); })); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 参照を渡すのは未定義動作なので There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 2ae98b7 で修正しました |
||
config.decoders.push_back(VideoDecoderConfig( | ||
webrtc::kVideoCodecVP9, | ||
[](auto format) { return webrtc::VP9Decoder::Create(); })); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CHANGE なのはこの部分だけで、他の部分は違うと思うので、分けたほうが良いです
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fdb7947 で対応しました