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 <ssilkin@webrtc.org>
Reviewed-by: Stefan Holmer <stefan@webrtc.org>
Commit-Queue: Sergey Silkin <ssilkin@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#35328}
diff --git a/AUTHORS b/AUTHORS
index cc6bfb0..63a709b 100644
--- a/AUTHORS
+++ b/AUTHORS
@@ -79,6 +79,7 @@
 Mike Gilbert <floppymaster@gmail.com>
 Min Wang <mingewang@gmail.com>
 Mo Zanaty <mzanaty@cisco.com>
+Niek van der Maas <mail@niekvandermaas.nl>
 Pali Rohar
 Paul Kapustin <pkapustin@gmail.com>
 Peng Yu <yupeng323@gmail.com>
diff --git a/modules/video_coding/codecs/h264/h264.cc b/modules/video_coding/codecs/h264/h264.cc
index 275e634..ca6ce3c 100644
--- a/modules/video_coding/codecs/h264/h264.cc
+++ b/modules/video_coding/codecs/h264/h264.cc
@@ -87,6 +87,10 @@
           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")};
 }