tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit 4ee3b55e4f10bd33589106d7d7eb014b203b2049
parent 6a66b9a44f7a247499c247b9209f1b77b690b9cb
Author: John Lin <jolin@mozilla.com>
Date:   Mon, 27 Oct 2025 18:05:36 +0000

Bug 1905878 - don't use SW VPX MediaCodec decoders. r=media-playback-reviewers,alwu

Differential Revision: https://phabricator.services.mozilla.com/D251781

Diffstat:
Mdom/media/platforms/android/AndroidDecoderModule.cpp | 10++++++++++
1 file changed, 10 insertions(+), 0 deletions(-)

diff --git a/dom/media/platforms/android/AndroidDecoderModule.cpp b/dom/media/platforms/android/AndroidDecoderModule.cpp @@ -341,6 +341,16 @@ already_AddRefed<MediaDataDecoder> AndroidDecoderModule::CreateVideoDecoder( return nullptr; } + // Don't use SW VPX MediaCodecs. Prefering VPXDecoder over MediaCodec SW + // decoder implementation allow us to have more consistent cross-platform VPX + // playback experience and be able to get upstream bug fixes/improvements more + // frequently. + if (VPXDecoder::IsVPX(aParams.VideoConfig().mMimeType) && + !SupportsMimeType(aParams.VideoConfig().mMimeType) + .contains(DecodeSupport::HardwareDecode)) { + return nullptr; + } + nsString drmStubId; if (mProxy) { drmStubId = mProxy->GetMediaDrmStubId();