mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-21 01:05:45 +00:00
Bug 1521370 - Always assume we can decode vp8/vp9. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D21478 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
8c4bf2f69e
commit
d63e3b0ef0
@ -319,6 +319,14 @@ bool PDMFactory::Supports(const TrackInfo& aTrackInfo,
|
||||
if (mEMEPDM) {
|
||||
return mEMEPDM->Supports(aTrackInfo, aDiagnostics);
|
||||
}
|
||||
if (VPXDecoder::IsVPX(aTrackInfo.mMimeType,
|
||||
VPXDecoder::VP8 | VPXDecoder::VP9)) {
|
||||
// Work around bug 1521370, where trying to instantiate an external decoder
|
||||
// could cause a crash.
|
||||
// We always ship a VP8/VP9 decoder (libvpx) and optionally we have ffvpx.
|
||||
// So we can speed up the test by assuming that this codec is supported.
|
||||
return true;
|
||||
}
|
||||
RefPtr<PlatformDecoderModule> current = GetDecoder(aTrackInfo, aDiagnostics);
|
||||
return !!current;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user