videoio: check iterator in mjpeg_encoder.cpp

pull/12166/head
berak 6 years ago
parent 23fc96e98f
commit 7e353a1ec5
  1. 3
      modules/videoio/src/cap_mjpeg_decoder.cpp

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

Loading…
Cancel
Save