diff --git a/webrtc-sys/src/video_decoder_factory.cpp b/webrtc-sys/src/video_decoder_factory.cpp index f7e7bb08..d9ea8bae 100644 --- a/webrtc-sys/src/video_decoder_factory.cpp +++ b/webrtc-sys/src/video_decoder_factory.cpp @@ -16,6 +16,7 @@ #include "livekit/video_decoder_factory.h" +#include #include "api/environment/environment.h" #include "api/video_codecs/av1_profile.h" #include "api/video_codecs/sdp_video_format.h" @@ -66,14 +67,9 @@ std::vector VideoDecoderFactory::GetSupportedFormats() webrtc::SupportedH264DecoderCodecs()) formats.push_back(h264_format); -#if defined(RTC_DAV1D_IN_INTERNAL_DECODER_FACTORY) - formats.push_back(webrtc::SdpVideoFormat(cricket::kAv1CodecName)); formats.push_back(webrtc::SdpVideoFormat( - cricket::kAv1CodecName, - {{cricket::kAv1FmtpProfile, - AV1ProfileToString(webrtc::AV1Profile::kProfile1).data()}})); -#endif - + webrtc::SdpVideoFormat::AV1Profile0(), + webrtc::LibaomAv1EncoderSupportedScalabilityModes())); return formats; }