File 0001-RTCVideoEncoder-Take-profile-from-vea_config.patch of Package nodejs-electron
From d3561bd895208a0959571459de85bf1e35ca3524 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Bj=C3=B6rn=20Bidar?= <bjorn.bidar@thaodan.de>
Date: Mon, 11 Dec 2023 03:29:47 +0200
Subject: [PATCH] RTCVideoEncoder: Take profile from vea_config
---
.../blink/renderer/platform/peerconnection/rtc_video_encoder.cc | 2 ++
1 file changed, 2 insertions(+)
diff --git a/third_party/blink/renderer/platform/peerconnection/rtc_video_encoder.cc b/third_party/blink/renderer/platform/peerconnection/rtc_video_encoder.cc
index 4a38905e2e553..64b4c2a5aa0c0 100644
--- a/third_party/blink/renderer/platform/peerconnection/rtc_video_encoder.cc
+++ b/third_party/blink/renderer/platform/peerconnection/rtc_video_encoder.cc
@@ -846,11 +846,13 @@ void RTCVideoEncoder::Impl::CreateAndInitializeVEA(
// When we don't have built in H264 software encoding, allow usage of any
// software encoders provided by the platform.
+#if 0
#if !BUILDFLAG(ENABLE_OPENH264) && BUILDFLAG(RTC_USE_H264)
if (profile >= media::H264PROFILE_MIN && profile <= media::H264PROFILE_MAX) {
vea_config.required_encoder_type =
media::VideoEncodeAccelerator::Config::EncoderType::kNoPreference;
}
+#endif
#endif
encoder_metrics_provider_ =
encoder_metrics_provider_factory_->CreateVideoEncoderMetricsProvider();
--
2.43.0