From dfec7a664bf43e61802058b9b5c2dc47e2f2dc6b Mon Sep 17 00:00:00 2001 From: Niek van der Maas Date: Mon, 8 Nov 2021 03:58:32 -0500 Subject: [PATCH] Added main profile to supported H264 codecs This adds the Main 3.1 profile to the list of supported H264 codecs. This unifies the output of WebRTC codecs among macOS/Windows (which both have Main 3.1 codecs) and headless Linux browsers. Bug: None Change-Id: Ife2fe8c1827be9368fabccc5f24ba316671b1b8b Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/236600 Reviewed-by: Sergey Silkin Reviewed-by: Stefan Holmer Commit-Queue: Sergey Silkin Cr-Commit-Position: refs/heads/main@{#35328} --- AUTHORS | 1 + modules/video_coding/codecs/h264/h264.cc | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/AUTHORS b/AUTHORS index cc6bfb0f77..63a709bc25 100644 --- a/AUTHORS +++ b/AUTHORS @@ -79,6 +79,7 @@ Miguel Paris Mike Gilbert Min Wang Mo Zanaty +Niek van der Maas Pali Rohar Paul Kapustin Peng Yu diff --git a/modules/video_coding/codecs/h264/h264.cc b/modules/video_coding/codecs/h264/h264.cc index 275e634409..ca6ce3c4b3 100644 --- a/modules/video_coding/codecs/h264/h264.cc +++ b/modules/video_coding/codecs/h264/h264.cc @@ -87,6 +87,10 @@ std::vector SupportedH264Codecs() { CreateH264Format(H264Profile::kProfileConstrainedBaseline, H264Level::kLevel3_1, "1"), CreateH264Format(H264Profile::kProfileConstrainedBaseline, + H264Level::kLevel3_1, "0"), + CreateH264Format(H264Profile::kProfileMain, + H264Level::kLevel3_1, "1"), + CreateH264Format(H264Profile::kProfileMain, H264Level::kLevel3_1, "0")}; }