title: "bad src image pointer" after read frame of video in OpenCV
body: <pre><code>VideoCapture cap;
  cap.open("Path_to_directory\\%03d.jpg"); 
  for (int i = 0; i &lt; number_of_frames; ++i)
      {
          Mat frame;
          cap &gt;&gt; frame;
          //...
      }
  </code></pre>
  
  <p>In the line "cap >> frame;" "bad src image pointer" is printed to console. None of the following frames of video could not be retrieved. </p>
  
  <p>Is there a specific property of image should have to captured with VideoCapture then retrieving to a Mat? </p>
  
  <p>Probably there is, because frames could be retrieved with code above. However after I manipulated them with Gimp, then I saved with overwriting them. Their some property should be changed while overwriting, but I don't know what are those. </p>
  
  <p>Thanks.</p>
  
  <p>Note: OpenCV version 2.4.9 </p>