mirror of
https://github.com/opencv/opencv.git
synced 2025-07-26 07:07:37 +08:00
imgcodecs(pxm): fix memcpy size
This commit is contained in:
parent
eecb64a973
commit
7bbe1a53cf
@ -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
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user