vf_scale_d3d11.c does not instantiate the interface IDs that it uses (IID_ID3D11VideoDevice and IID_ID3D11VideoContext). Builds of avfilter for Windows configured such that no other source files instantiate these IIDs will result in missing symbol errors during linking. The fix is to include <initguid.h> and <d3d11.h> in the same way that vsrc_ddagrab.c does.
Signed-off-by: Adam Zofware <a...@zofware.com> --- libavfilter/vf_scale_d3d11.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/libavfilter/vf_scale_d3d11.c b/libavfilter/vf_scale_d3d11.c index c301f4a0c9..863e42808f 100644 --- a/libavfilter/vf_scale_d3d11.c +++ b/libavfilter/vf_scale_d3d11.c @@ -21,6 +21,13 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#include <windows.h> + +#define COBJMACROS + +#include <initguid.h> +#include <d3d11.h> + #include "libavutil/opt.h" #include "libavutil/pixdesc.h" #include "compat/w32dlfcn.h" -- 2.51.0.windows.1 _______________________________________________ ffmpeg-devel mailing list -- ffmpeg-devel@ffmpeg.org To unsubscribe send an email to ffmpeg-devel-le...@ffmpeg.org