* [FFmpeg-devel] [PATCH] Fix missing IID instantiation in vf_scale_d3d11.c
@ 2025-09-01 23:45 Adam Zofware via ffmpeg-devel
0 siblings, 0 replies; only message in thread
From: Adam Zofware via ffmpeg-devel @ 2025-09-01 23:45 UTC (permalink / raw)
To: ffmpeg-devel; +Cc: Adam Zofware
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-09-01 23:46 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-09-01 23:45 [FFmpeg-devel] [PATCH] Fix missing IID instantiation in vf_scale_d3d11.c Adam Zofware via ffmpeg-devel
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