Bug 1410022 - Remove redundant PDM::Supports check caused by
bug 1407919 part6. r?gerald
MozReview-Commit-ID: EoAARcmhjlV
--- a/dom/media/webm/WebMDecoder.cpp
+++ b/dom/media/webm/WebMDecoder.cpp
@@ -53,21 +53,22 @@ WebMDecoder::IsSupportedType(const Media
}
// If it is vp8 or vp9, check the bit depth.
if (trackInfo) {
uint8_t profile = 0;
uint8_t level = 0;
uint8_t bitDepth = 0;
if (ExtractVPXCodecDetails(codec, profile, level, bitDepth)) {
trackInfo->GetAsVideoInfo()->mBitDepth = bitDepth;
- }
- // Verify that we have a PDM that supports this bit depth.
- RefPtr<PDMFactory> platform = new PDMFactory();
- if (!platform->Supports(*trackInfo, nullptr)) {
- return false;
+
+ // Verify that we have a PDM that supports this bit depth.
+ RefPtr<PDMFactory> platform = new PDMFactory();
+ if (!platform->Supports(*trackInfo, nullptr)) {
+ return false;
+ }
}
continue;
}
}
#ifdef MOZ_AV1
if (isVideo && AOMDecoder::IsSupportedCodec(codec)) {
continue;
}