mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 13:51:41 +00:00
Bug 1117594 - Crash on unexpected image format in ImageLayerD3D10::RenderLayer(). r=bas.
--HG-- extra : rebase_source : f99f778126dcad615b754a84dc4ca6e1c9d2578d
This commit is contained in:
parent
740b452f0f
commit
54769bc618
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user