Made calibration a bit faster in the absense of a checkboard and trying to fix
a crash with the libv4l capture code
This commit is contained in:
@@ -1261,9 +1261,11 @@ static IplImage* icvRetrieveFrameCAM_V4L( CvCaptureCAM_V4L* capture, int) {
|
||||
if (capture->is_v4l2_device == 1)
|
||||
{
|
||||
|
||||
memcpy((char *)capture->frame.imageData,
|
||||
(char *)capture->buffers[capture->bufferIndex].start,
|
||||
capture->frame.imageSize);
|
||||
if(capture->buffers[capture->bufferIndex].start){
|
||||
memcpy((char *)capture->frame.imageData,
|
||||
(char *)capture->buffers[capture->bufferIndex].start,
|
||||
capture->frame.imageSize);
|
||||
}
|
||||
|
||||
} else
|
||||
#endif /* HAVE_CAMV4L2 */
|
||||
|
||||
Reference in New Issue
Block a user