videoio: check iterator in mjpeg_encoder.cpp

This commit is contained in:
berak 2018-08-07 11:43:37 +02:00
parent 23fc96e98f
commit 7e353a1ec5

View File

@ -146,6 +146,9 @@ bool MotionJpegCapture::grabFrame()
} }
else else
{ {
if (m_frame_iterator == m_mjpeg_frames.end())
return false;
++m_frame_iterator; ++m_frame_iterator;
} }
} }