From 893fe0f9582bd31c0d73afcf15b7552bf6f69f70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20Monnom?= Date: Thu, 12 Dec 2024 14:12:46 +0100 Subject: [PATCH] fix av1 supported formats (#517) --- webrtc-sys/src/video_decoder_factory.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) 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; }