Commit 7bbe1a53 authored by Alexander Alekhin's avatar Alexander Alekhin

imgcodecs(pxm): fix memcpy size

parent eecb64a9
...@@ -333,7 +333,7 @@ bool PxMDecoder::readData( Mat& img ) ...@@ -333,7 +333,7 @@ bool PxMDecoder::readData( Mat& img )
} }
} }
else else
memcpy( data, src, CV_ELEM_SIZE1(m_type)*m_width); memcpy(data, src, img.elemSize1()*m_width);
} }
else else
{ {
......
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