Add SdpVideoFormat for H265 Bug: b/392789698 Change-Id: Ifb1ed48482c75e99849da92ace28ed886e761c56 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/377741 Auto-Submit: Artem Titov <titovartem@webrtc.org> Reviewed-by: Harald Alvestrand <hta@webrtc.org> Commit-Queue: Harald Alvestrand <hta@webrtc.org> Reviewed-by: Henrik Boström <hbos@webrtc.org> Cr-Commit-Position: refs/heads/main@{#43950}
diff --git a/api/video_codecs/sdp_video_format.cc b/api/video_codecs/sdp_video_format.cc index 50d457d..04da08c 100644 --- a/api/video_codecs/sdp_video_format.cc +++ b/api/video_codecs/sdp_video_format.cc
@@ -218,6 +218,10 @@ return SdpVideoFormat(cricket::kH264CodecName, {}); } +const SdpVideoFormat SdpVideoFormat::H265() { + return SdpVideoFormat(cricket::kH265CodecName, {}); +} + const SdpVideoFormat SdpVideoFormat::VP9Profile0() { return SdpVideoFormat( cricket::kVp9CodecName,
diff --git a/api/video_codecs/sdp_video_format.h b/api/video_codecs/sdp_video_format.h index 7c8de66..16b4fae 100644 --- a/api/video_codecs/sdp_video_format.h +++ b/api/video_codecs/sdp_video_format.h
@@ -74,6 +74,7 @@ // Well-known video codecs and their format parameters. static const SdpVideoFormat VP8(); static const SdpVideoFormat H264(); + static const SdpVideoFormat H265(); static const SdpVideoFormat VP9Profile0(); static const SdpVideoFormat VP9Profile1(); static const SdpVideoFormat VP9Profile2();