VideoCapture Constructor concurrency bug (Bug #1006)
OpenCV Version: 2.2
Calling the constructor VideoCapture::VideoCapture(const string& filename) simultaneously from multiple threads causes ffmpeg to print a bunch of statements to the terminal complaining "insufficient thread locking around avcodec_open/close()" and then crash.
Was able to fix this easily by wrapping the constructor with a global mutex. Might consider doing the same within OpenCV or making a note of it in the documentation.