File rtc-dont-use-h264.patch of Package qt6-webengine

From: Fabian Vogt <fabian@ritter-vogt.de>
Subject: Don't require open264 when proprietary_codecs are supported

Amended on 2024-01-30: also disable h265

diff --git a/src/3rdparty/chromium/third_party/webrtc/webrtc.gni b/src/3rdparty/chromium/third_party/webrtc/webrtc.gni
index 66ed8434ff0..cbd78d582e6 100644
--- a/src/3rdparty/chromium/third_party/webrtc/webrtc.gni
+++ b/src/3rdparty/chromium/third_party/webrtc/webrtc.gni
@@ -185,8 +185,7 @@ declare_args() {
   if (build_with_chromium) {
     rtc_use_h264 = media_use_openh264
   } else {
-    rtc_use_h264 =
-        proprietary_codecs && !is_android && !is_ios && !(is_win && !is_clang)
+    rtc_use_h264 = false
   }
 
   # Use system OpenH264
@@ -196,7 +195,7 @@ declare_args() {
   if (build_with_chromium) {
     rtc_use_h265 = enable_hevc_parser_and_hw_decoder
   } else {
-    rtc_use_h265 = proprietary_codecs
+    rtc_use_h265 = false
   }
 
   # Enable this flag to make webrtc::Mutex be implemented by absl::Mutex.
openSUSE Build Service is sponsored by