mirror of
https://github.com/opencv/opencv.git
synced 2024-11-25 03:30:34 +08:00
videoio: check iterator in mjpeg_encoder.cpp
This commit is contained in:
parent
23fc96e98f
commit
7e353a1ec5
@ -146,6 +146,9 @@ bool MotionJpegCapture::grabFrame()
|
||||
}
|
||||
else
|
||||
{
|
||||
if (m_frame_iterator == m_mjpeg_frames.end())
|
||||
return false;
|
||||
|
||||
++m_frame_iterator;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user