diff --git a/modules/videoio/src/cap_ffmpeg_hw.hpp b/modules/videoio/src/cap_ffmpeg_hw.hpp index 31db5fdd5d..0998ee9f48 100644 --- a/modules/videoio/src/cap_ffmpeg_hw.hpp +++ b/modules/videoio/src/cap_ffmpeg_hw.hpp @@ -21,6 +21,7 @@ #define D3D11_NO_HELPERS #include #include +#include #include "opencv2/core/directx.hpp" #ifdef HAVE_OPENCL #include diff --git a/modules/videoio/src/cap_msmf.cpp b/modules/videoio/src/cap_msmf.cpp index d3002a5151..f28c0bbdb3 100644 --- a/modules/videoio/src/cap_msmf.cpp +++ b/modules/videoio/src/cap_msmf.cpp @@ -29,6 +29,7 @@ #ifdef HAVE_MSMF_DXVA #include #include +#include #endif #include #include