Skip to content

Commit 7bbe1a5

Browse files
committed
imgcodecs(pxm): fix memcpy size
1 parent eecb64a commit 7bbe1a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/imgcodecs/src/grfmt_pxm.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ bool PxMDecoder::readData( Mat& img )
333333
}
334334
}
335335
else
336-
memcpy( data, src, CV_ELEM_SIZE1(m_type)*m_width);
336+
memcpy(data, src, img.elemSize1()*m_width);
337337
}
338338
else
339339
{

0 commit comments

Comments
 (0)