Bug 1117594 - Crash on unexpected image format in ImageLayerD3D10::RenderLayer(). r=bas.

--HG--
extra : rebase_source : f99f778126dcad615b754a84dc4ca6e1c9d2578d
This commit is contained in:
Nicholas Nethercote 2015-01-05 15:53:22 -08:00
parent 740b452f0f
commit 54769bc618

View File

@ -304,6 +304,8 @@ ImageLayerD3D10::RenderLayer()
(float)yuvImage->GetData()->mPicSize.width / yuvImage->GetData()->mYSize.width,
(float)yuvImage->GetData()->mPicSize.height / yuvImage->GetData()->mYSize.height)
);
} else {
MOZ_CRASH("unexpected image format");
}
bool resetTexCoords = image->GetFormat() == ImageFormat::PLANAR_YCBCR;