Commit 443059e3 authored by Alexander Alekhin's avatar Alexander Alekhin Committed by Alexander Alekhin

imgcodecs(pxm): fix memcpy size

7bbe1a53
parent 8f9c4d23
...@@ -331,7 +331,7 @@ bool PxMDecoder::readData( Mat& img ) ...@@ -331,7 +331,7 @@ bool PxMDecoder::readData( Mat& img )
} }
} }
else else
memcpy( data, src, m_width*(bit_depth/8) ); 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