forked from bromite/bromite
-
Notifications
You must be signed in to change notification settings - Fork 105
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Media fingerprinting mitigations: #862 removes the ability to underst…
…and the capabilities of the video card in windows.
- Loading branch information
Showing
2 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
From: uazo <[email protected]> | ||
Date: Thu, 30 May 2024 11:42:21 +0000 | ||
Subject: Media fingerprinting mitigations | ||
|
||
Removes the ability to understand the capabilities of the video card in windows. | ||
See https://github.com/uazo/cromite/issues/862 | ||
|
||
License: GPL-2.0-or-later - https://spdx.org/licenses/GPL-2.0-or-later.html | ||
--- | ||
third_party/blink/renderer/modules/webcodecs/video_decoder.cc | 2 +- | ||
1 file changed, 1 insertion(+), 1 deletion(-) | ||
|
||
diff --git a/third_party/blink/renderer/modules/webcodecs/video_decoder.cc b/third_party/blink/renderer/modules/webcodecs/video_decoder.cc | ||
--- a/third_party/blink/renderer/modules/webcodecs/video_decoder.cc | ||
+++ b/third_party/blink/renderer/modules/webcodecs/video_decoder.cc | ||
@@ -299,7 +299,7 @@ ScriptPromise<VideoDecoderSupport> VideoDecoder::isConfigSupported( | ||
auto* config_copy = CopyConfig(*config); | ||
|
||
// Run the "Check Configuration Support" algorithm. | ||
- HardwarePreference hw_pref = GetHardwareAccelerationPreference(*config_copy); | ||
+ HardwarePreference hw_pref = HardwarePreference::kPreferSoftware; | ||
VideoDecoderSupport* support = VideoDecoderSupport::Create(); | ||
support->setConfig(config_copy); | ||
|
||
-- |