diff --git a/dom/media/platforms/apple/AppleVTDecoder.cpp b/dom/media/platforms/apple/AppleVTDecoder.cpp index f3d8b9201d5e..005fef3d5c82 100644 --- a/dom/media/platforms/apple/AppleVTDecoder.cpp +++ b/dom/media/platforms/apple/AppleVTDecoder.cpp @@ -45,7 +45,6 @@ AppleVTDecoder::AppleVTDecoder(const VideoInfo& aConfig, ? *aConfig.mColorSpace : DefaultColorSpace({mPictureWidth, mPictureHeight})), mColorRange(aConfig.mColorRange), - mColorDepth(aConfig.mColorDepth), mStreamType(MP4Decoder::IsH264(aConfig.mMimeType) ? StreamType::H264 : VPXDecoder::IsVP9(aConfig.mMimeType) ? StreamType::VP9 : StreamType::Unknown), @@ -608,13 +607,10 @@ CFDictionaryRef AppleVTDecoder::CreateOutputConfiguration() { #ifndef MOZ_WIDGET_UIKIT // Output format type: - bool is10Bit = (gfx::BitDepthForColorDepth(mColorDepth) == 10); SInt32 PixelFormatTypeValue = mColorRange == gfx::ColorRange::FULL - ? (is10Bit ? kCVPixelFormatType_420YpCbCr10BiPlanarFullRange - : kCVPixelFormatType_420YpCbCr8BiPlanarFullRange) - : (is10Bit ? kCVPixelFormatType_420YpCbCr10BiPlanarVideoRange - : kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange); + ? kCVPixelFormatType_420YpCbCr8BiPlanarFullRange + : kCVPixelFormatType_420YpCbCr8BiPlanarVideoRange; AutoCFRelease PixelFormatTypeNumber = CFNumberCreate( kCFAllocatorDefault, kCFNumberSInt32Type, &PixelFormatTypeValue); // Construct IOSurface Properties diff --git a/dom/media/platforms/apple/AppleVTDecoder.h b/dom/media/platforms/apple/AppleVTDecoder.h index 84d99badcbdd..afb2c76ce9f6 100644 --- a/dom/media/platforms/apple/AppleVTDecoder.h +++ b/dom/media/platforms/apple/AppleVTDecoder.h @@ -92,7 +92,6 @@ class AppleVTDecoder : public MediaDataDecoder, const uint32_t mDisplayHeight; const gfx::YUVColorSpace mColorSpace; const gfx::ColorRange mColorRange; - const gfx::ColorDepth mColorDepth; // Method to set up the decompression session. MediaResult InitializeSession();