mirror of
https://github.com/opencv/opencv.git
synced 2025-08-06 14:36:36 +08:00
videoio: fix lifetime management of data of input frames
This commit is contained in:
parent
59fc909d48
commit
e21c01708a
@ -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 )
|
||||
|
Loading…
Reference in New Issue
Block a user