Index: media/capture/video/win/video_capture_device_mf_win.cc |
diff --git a/media/capture/video/win/video_capture_device_mf_win.cc b/media/capture/video/win/video_capture_device_mf_win.cc |
index 9965e7c76a3fbd083c5661478d1015034b8a5cd9..7603d3b57fcede76e8a32caff540cf5fb5c8291f 100644 |
--- a/media/capture/video/win/video_capture_device_mf_win.cc |
+++ b/media/capture/video/win/video_capture_device_mf_win.cc |
@@ -17,6 +17,7 @@ |
#include "base/synchronization/waitable_event.h" |
#include "base/win/scoped_co_mem.h" |
#include "base/win/windows_version.h" |
+#include "media/capture/video/video_capture_utils.h" |
#include "media/capture/video/win/capability_list_win.h" |
using base::win::ScopedCoMem; |
@@ -178,6 +179,10 @@ bool VideoCaptureDeviceMFWin::FormatFromGuid(const GUID& guid, |
return true; |
} |
} |
+ if (IsY16FormatFourCc(guid.Data1)) { |
+ *format = PIXEL_FORMAT_Y16; |
+ return true; |
+ } |
return false; |
} |