Itseez/opencv — pull request #3260 by a-wi (2014-09-23 18:44:24+00:00)
Title: Fixed MSMF file capture error while opening the file with unsupported video stream format

Current implementation MSMF capture supports only raw RGB data. If input file doesn't contain such a data MSMF capture crashes with memory access violation error when there is attempted to read the file.
Skipping non-RGB streams when building the list of available formats for frame grabber prevents from reading unsupported video data.