From 6f7c7f28dc5d8f68707e991ba2a67d8caca37fac Mon Sep 17 00:00:00 2001 From: Matt Woodrow Date: Wed, 26 Aug 2020 12:46:37 +0000 Subject: [PATCH] Bug 1659760 - Specify correct FOURCC yuv type when converting IOSurfaces to RGB. r=miko Differential Revision: https://phabricator.services.mozilla.com/D88238 --- gfx/layers/MacIOSurfaceHelpers.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gfx/layers/MacIOSurfaceHelpers.cpp b/gfx/layers/MacIOSurfaceHelpers.cpp index 2d10836c674a..8976b6ad8237 100644 --- a/gfx/layers/MacIOSurfaceHelpers.cpp +++ b/gfx/layers/MacIOSurfaceHelpers.cpp @@ -98,7 +98,7 @@ CreateSourceSurfaceFromLockedMacIOSurface(MacIOSurface* aSurface) { 0 /* not used */, mappedSurface.mData, mappedSurface.mStride, 0, 0, size.width, size.height, size.width, size.height, - libyuv::kRotate0, libyuv::FOURCC_UYVY); + libyuv::kRotate0, libyuv::FOURCC_YUYV); } else { /* Convert to YV16 */ size_t cbCrWidth = (ioWidth + 1) >> 1;