提交 86e1f631 编写于 作者: A Alexander Alekhin

Merge pull request #11555 from alalek:fix_videocapture_frame_lifetime

......@@ -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 )
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册