[FFmpeg-trac] #10914(avfilter:new): Access Violation using ddagrab filter in Windows x86 (32 bit)

FFmpeg trac at avcodec.org
Sat Mar 23 16:46:55 EET 2024


#10914: Access Violation using ddagrab filter in Windows x86 (32 bit)
-------------------------------------+-------------------------------------
             Reporter:  Vadim        |                    Owner:  (none)
  Guchenko                           |
                 Type:  defect       |                   Status:  new
             Priority:  normal       |                Component:  avfilter
              Version:  git-master   |               Resolution:
             Keywords:  ddagrab x86  |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
Comment (by Vadim Guchenko):

 The following patch fixes the problem:

 {{{
 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 (__stdcall
 *set_thread_dpi_t)(DPI_AWARENESS_CONTEXT);
      set_thread_dpi_t set_thread_dpi;
      HMODULE user32_module;
  #endif
 }}}
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/10914#comment:8>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list