@@ -77,6 +77,9 @@ int32_t VideoReceiveAdapterImpl::AdapterDecoder::Decode(const webrtc::EncodedIma
7777 case webrtc::VideoCodecType::kVideoCodecH265 :
7878 format = FRAME_FORMAT_H265;
7979 break ;
80+ case webrtc::VideoCodecType::kVideoCodecAV1 :
81+ format = FRAME_FORMAT_AV1;
82+ break ;
8083 default :
8184 RTC_LOG (LS_WARNING) << " Unknown FORMAT" ;
8285 return 0 ;
@@ -242,6 +245,12 @@ void VideoReceiveAdapterImpl::CreateReceiveVideo()
242245 webrtc::CodecTypeToPayloadString (webrtc::VideoCodecType::kVideoCodecH265 ));
243246 RTC_DLOG (LS_INFO) << " Config add decoder:" << decoder.ToString ();
244247 video_recv_config.decoders .push_back (decoder);
248+ // Add AV1 decoder
249+ decoder.payload_type = AV1_90000_PT;
250+ decoder.video_format = webrtc::SdpVideoFormat (
251+ webrtc::CodecTypeToPayloadString (webrtc::VideoCodecType::kVideoCodecAV1 ));
252+ RTC_DLOG (LS_INFO) << " Config add decoder:" << decoder.ToString ();
253+ video_recv_config.decoders .push_back (decoder);
245254
246255 RTC_DLOG (LS_INFO) << " VideoReceiveStream::Config " << video_recv_config.ToString ();
247256 m_videoRecvStream = call ()->CreateVideoReceiveStream (std::move (video_recv_config));
@@ -267,7 +276,9 @@ std::vector<webrtc::SdpVideoFormat> VideoReceiveAdapterImpl::GetSupportedFormats
267276 webrtc::SdpVideoFormat (
268277 webrtc::CodecTypeToPayloadString (webrtc::VideoCodecType::kVideoCodecH264 )),
269278 webrtc::SdpVideoFormat (
270- webrtc::CodecTypeToPayloadString (webrtc::VideoCodecType::kVideoCodecH265 ))
279+ webrtc::CodecTypeToPayloadString (webrtc::VideoCodecType::kVideoCodecH265 )),
280+ webrtc::SdpVideoFormat (
281+ webrtc::CodecTypeToPayloadString (webrtc::VideoCodecType::kVideoCodecAV1 ))
271282 };
272283}
273284
0 commit comments