[FFmpeg-user] ffmpeg 6.1.1 fails to compile with mingw-w64 gcc 14

Biswapriyo Nath nathbappai at gmail.com
Fri May 17 16:32:54 EEST 2024


* gcc version: 14.1.0
* build options:
https://github.com/msys2/MINGW-packages/blob/master/mingw-w64-ffmpeg/PKGBUILD
* compiler error:

ffmpeg-6.1.1/libavutil/hwcontext_qsv.c:756:68: error: passing argument
3 of 'devmgr->lpVtbl->LockDevice' from incompatible pointer type
[-Wincompatible-pointer-types]
  756 |     hr = IDirect3DDeviceManager9_LockDevice(devmgr,
device_handle, &device, TRUE);
      |
    ^~~~~~~
      |                                                                    |
      |
    IDirect3DDevice9Ex **
ffmpeg-6.1.1/libavutil/hwcontext_qsv.c:756:68: note: expected
'IDirect3DDevice9 **' but argument is of type 'IDirect3DDevice9Ex **'

ffmpeg-6.1.1/libavutil/hwcontext_qsv.c:770:49: error: passing argument
2 of 'device->lpVtbl->GetDirect3D' from incompatible pointer type
[-Wincompatible-pointer-types]
  770 |     hr = IDirect3DDevice9Ex_GetDirect3D(device, &d3d9ex);
      |                                                 ^~~~~~~
      |                                                 |
      |                                                 IDirect3D9Ex **
ffmpeg-6.1.1/libavutil/hwcontext_qsv.c:770:49: note: expected
'IDirect3D9 **' but argument is of type 'IDirect3D9Ex **'

* downstream issue: https://github.com/msys2/MINGW-packages/issues/20891
* probable solution: https://github.com/msys2/MINGW-packages/pull/20930

Please feel free ask any further information I need to provide for
fixing the issue.

Thank you.


More information about the ffmpeg-user mailing list