1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-30 07:43:03 +04:00

Merge pull request #11555 from alalek:fix_videocapture_frame_lifetime

This commit is contained in:
Alexander Alekhin
2018-05-21 10:35:36 +00:00
+1 -1
View File
@@ -223,7 +223,7 @@ public:
if (!ffmpegCapture ||
!icvRetrieveFrame_FFMPEG_p(ffmpegCapture, &data, &step, &width, &height, &cn))
return false;
frame.assign(cv::Mat(height, width, CV_MAKETYPE(CV_8U, cn), data, step));
cv::Mat(height, width, CV_MAKETYPE(CV_8U, cn), data, step).copyTo(frame);
return true;
}
virtual bool open( const cv::String& filename )