Skip to content
Snippets Groups Projects
Commit c28244ed authored by Karsten Suehring's avatar Karsten Suehring
Browse files

correct CHECKs for field coding in VideoIOYuv

Both fields are required to have the same dimensions for being combined into one picture again. The checks fail, if the dimensions are the same, so they need to be inverted.
parent 131fce35
No related branches found
No related tags found
1 merge request!945correct CHECKs for field coding in VideoIOYuv
......@@ -1146,9 +1146,9 @@ bool VideoIOYuv::write( const CPelUnitBuf& picTop, const CPelUnitBuf& picBottom,
const uint32_t width444 = areaTopY.width - (confLeft + confRight);
const uint32_t height444 = areaTopY.height - (confTop + confBottom);
CHECK(areaTop.width == areaBottom.width , "Incompatible formats");
CHECK(areaTop.height == areaBottom.height, "Incompatible formats");
CHECK(areaTop.stride == areaBottom.stride, "Incompatible formats");
CHECK(areaTop.width != areaBottom.width , "Incompatible formats");
CHECK(areaTop.height != areaBottom.height, "Incompatible formats");
CHECK(areaTop.stride != areaBottom.stride, "Incompatible formats");
if ((width444 == 0) || (height444 == 0))
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment