title: OpenCV RTSP H264 capture
body: <p>I am using OpenCV 2.4.5 on windows 7 to capture RTSP stream.But I am getting some corrupt images in between.I found that the error is in decoding in ffmpeg layer.I want to drop these corrupt frames.But I am not able to do that because opencv Mat::empty never returns true.
  What could be the root cause of this and please let me know the solution for the same.</p>
  
  <p>Here is an image for the reference:</p>
  
  <p><img src="https://i.stack.imgur.com/CrBab.jpg" alt=""></p>