Skip to content

Commit

Permalink
cricket::Codec は protected になったので修正する
Browse files Browse the repository at this point in the history
  • Loading branch information
miosakuma committed Sep 21, 2023
1 parent 287a5cc commit 7e63f7e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/dynamic_h264_encoder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ static void RtpFragmentize(EncodedImage* encoded_image, SFrameBSInfo* info) {
}
}

DynamicH264Encoder::DynamicH264Encoder(const cricket::VideoCodec& codec,
DynamicH264Encoder::DynamicH264Encoder(const cricket::CreateVideoCodec& codec,
std::string openh264)
: packetization_mode_(H264PacketizationMode::SingleNalUnit),
max_payload_size_(0),
Expand Down
4 changes: 2 additions & 2 deletions src/dynamic_h264_encoder.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ namespace webrtc {

class DynamicH264Encoder : public H264Encoder {
public:
static std::unique_ptr<VideoEncoder> Create(const cricket::VideoCodec& codec,
static std::unique_ptr<VideoEncoder> Create(const cricket::CreateVideoCodec& codec,
std::string openh264) {
return std::unique_ptr<VideoEncoder>(
new DynamicH264Encoder(codec, std::move(openh264)));
Expand All @@ -67,7 +67,7 @@ class DynamicH264Encoder : public H264Encoder {
};

public:
explicit DynamicH264Encoder(const cricket::VideoCodec& codec,
explicit DynamicH264Encoder(const cricket::CreateVideoCodec& codec,
const std::string openh264);
~DynamicH264Encoder() override;

Expand Down
2 changes: 1 addition & 1 deletion src/sora_factory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ SoraFactory::SoraFactory(std::optional<bool> use_hardware_encoder,
[openh264 = openh264](
auto format) -> std::unique_ptr<webrtc::VideoEncoder> {
return webrtc::DynamicH264Encoder::Create(
cricket::VideoCodec(format), *openh264);
cricket::CreateVideoCodec(format), *openh264);
}));
media_dependencies.video_encoder_factory =
absl::make_unique<sora::SoraVideoEncoderFactory>(
Expand Down

0 comments on commit 7e63f7e

Please sign in to comment.