Merge pull request #3400 from vpisarev:fixed_umat_test_crash

pull/3383/merge
Vadim Pisarevsky 11 years ago
commit 9b13b07639
  1. 6
      modules/core/test/test_umat.cpp

@ -130,6 +130,12 @@ TEST_P(UMatBasicTests, swap)
TEST_P(UMatBasicTests, base)
{
const int align_mask = 3;
roi.x &= ~align_mask;
roi.y &= ~align_mask;
roi.width = (roi.width + align_mask) & ~align_mask;
roi &= Rect(0, 0, ua.cols, ua.rows);
if(useRoi)
{
ua = UMat(ua,roi);

Loading…
Cancel
Save