Skip to content

Commit

Permalink
fix av1 supported formats (#517)
Browse files Browse the repository at this point in the history
  • Loading branch information
theomonnom authored Dec 12, 2024
1 parent 43933e5 commit 893fe0f
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions webrtc-sys/src/video_decoder_factory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

#include "livekit/video_decoder_factory.h"

#include <modules/video_coding/codecs/av1/av1_svc_config.h>
#include "api/environment/environment.h"
#include "api/video_codecs/av1_profile.h"
#include "api/video_codecs/sdp_video_format.h"
Expand Down Expand Up @@ -66,14 +67,9 @@ std::vector<webrtc::SdpVideoFormat> 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;
}

Expand Down

0 comments on commit 893fe0f

Please sign in to comment.