Commit 913b9cd6 authored by Vadim Pisarevsky's avatar Vadim Pisarevsky

Merge pull request #7398 from vpisarev:mat2umat_copy_fix

parents 42fbfb9b 83f2eb79
......@@ -263,6 +263,11 @@ void Mat::copyTo( OutputArray _dst ) const
if( _dst.isUMat() )
{
if( empty() )
{
_dst.release();
return;
}
_dst.create( dims, size.p, type() );
UMat dst = _dst.getUMat();
......
......@@ -118,7 +118,6 @@ private:
int height;
int settingWidth;
int settingHeight;
OSType mInputPixelFormat;
int started;
};
......@@ -163,7 +162,6 @@ private:
CMTime mFrameTimestamp;
size_t mFrameNum;
OSType mInputPixelFormat;
int started;
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment