Bug 1659760 - Specify correct FOURCC yuv type when converting IOSurfaces to RGB. r=miko

Differential Revision: https://phabricator.services.mozilla.com/D88238
This commit is contained in:
Matt Woodrow 2020-08-26 12:46:37 +00:00
parent 951058db06
commit 6f7c7f28dc

View File

@ -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;