Commit 512e73db authored by Alexander Alekhin's avatar Alexander Alekhin

Merge pull request #5881 from alalek:fix_5878

parents 9012ff47 6b4d4a85
......@@ -790,7 +790,7 @@ std::vector<char> MotionJpegCapture::readFrame(frame_iterator it)
result.reserve(chunk.m_size);
result.resize(chunk.m_size);
m_file_stream.read(result.data(), chunk.m_size);
m_file_stream.read(&(result[0]), chunk.m_size); // result.data() failed with MSVS2008
return result;
}
......
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