From: Adam Zofware via ffmpeg-devel <ffmpeg-devel@ffmpeg.org> To: <ffmpeg-devel@ffmpeg.org> Cc: Adam Zofware <adam@zofware.com> Subject: [FFmpeg-devel] [PATCH] Fix missing IID instantiation in vf_scale_d3d11.c Date: Mon, 1 Sep 2025 16:45:57 -0700 Message-ID: <1b2b01dc1b9a$90e67c50$b2b374f0$@zofware.com> (raw) 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 <adam@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-leave@ffmpeg.org
reply other threads:[~2025-09-01 23:46 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to='1b2b01dc1b9a$90e67c50$b2b374f0$@zofware.com' \ --to=ffmpeg-devel@ffmpeg.org \ --cc=adam@zofware.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel This inbox may be cloned and mirrored by anyone: git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \ ffmpegdev@gitmailbox.com public-inbox-index ffmpegdev Example config snippet for mirrors. AGPL code for this site: git clone https://public-inbox.org/public-inbox.git