[FFmpeg-devel] [PATCH] lavf/vsrc_ddagrab: WinAPI functions must be called as stdcall in x86_32
Vadim Guchenko
yhw at relost.net
Sun Apr 7 16:10:01 EEST 2024
Henrik Gramner via ffmpeg-devel wrote on 07.04.2024 at 17:32:
> I believe most existing code uses WINAPI instead of __stdcall.
Thanks for correction. Here is a new patch:
diff --git a/libavfilter/vsrc_ddagrab.c b/libavfilter/vsrc_ddagrab.c
--- a/libavfilter/vsrc_ddagrab.c
+++ b/libavfilter/vsrc_ddagrab.c
@@ -178,7 +178,7 @@ static av_cold int init_dxgi_dda(AVFilterContext *avctx)
#if HAVE_IDXGIOUTPUT5 && HAVE_DPI_AWARENESS_CONTEXT
IDXGIOutput5 *dxgi_output5 = NULL;
- typedef DPI_AWARENESS_CONTEXT (*set_thread_dpi_t)(DPI_AWARENESS_CONTEXT);
+ typedef DPI_AWARENESS_CONTEXT (WINAPI *set_thread_dpi_t)(DPI_AWARENESS_CONTEXT);
set_thread_dpi_t set_thread_dpi;
HMODULE user32_module;
#endif
More information about the ffmpeg-devel
mailing list