mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-23 19:49:56 +00:00
avutil/hwcontext_d3d11va: fix type arguments passed to IDXGIAdapter2_GetDesc()
libavutil/hwcontext_d3d11va.c: In function 'd3d11va_device_create': libavutil/hwcontext_d3d11va.c:554:46: warning: passing argument 2 of 'pAdapter->lpVtbl->GetDesc' from incompatible pointer type [-Wincompatible-pointer-types] hr = IDXGIAdapter2_GetDesc(pAdapter, &desc); ^ libavutil/hwcontext_d3d11va.c:554:46: note: expected 'DXGI_ADAPTER_DESC * {aka struct DXGI_ADAPTER_DESC *}' but argument is of type 'DXGI_ADAPTER_DESC2 * {aka struct DXGI_ADAPTER_DESC2 *}' Reviewed-by: Jean-Baptiste Kempf <jb@videolan.org> Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
parent
fa35ab80f3
commit
81a18f219e
@ -550,7 +550,7 @@ static int d3d11va_device_create(AVHWDeviceContext *ctx, const char *device,
|
||||
}
|
||||
|
||||
if (pAdapter) {
|
||||
DXGI_ADAPTER_DESC2 desc;
|
||||
DXGI_ADAPTER_DESC desc;
|
||||
hr = IDXGIAdapter2_GetDesc(pAdapter, &desc);
|
||||
if (!FAILED(hr)) {
|
||||
av_log(ctx, AV_LOG_INFO, "Using device %04x:%04x (%ls).\n",
|
||||
|
Loading…
Reference in New Issue
Block a user