Commit 7e353a1e authored by berak's avatar berak

videoio: check iterator in mjpeg_encoder.cpp

parent 23fc96e9
......@@ -146,6 +146,9 @@ bool MotionJpegCapture::grabFrame()
}
else
{
if (m_frame_iterator == m_mjpeg_frames.end())
return false;
++m_frame_iterator;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment