On 6/9/17 4:27 PM, wm4 wrote:

>  #include "avassert.h"
>  #include "common.h"
>  #include "hwcontext.h"
> @@ -446,6 +452,14 @@ static int d3d11va_device_create(AVHWDeviceContext *ctx, 
> const char *device,
>      IDXGIAdapter           *pAdapter = NULL;
>      ID3D10Multithread      *pMultithread;
>      UINT creationFlags = D3D11_CREATE_DEVICE_VIDEO_SUPPORT;
> +    int is_debug       = !!av_dict_get(opts, "debug", NULL, 0);
> +
> +#ifndef UWP
> +    if (is_debug) {
> +        if (LoadLibrary("d3d11_1sdklayers.dll"))
> +            creationFlags |= D3D11_CREATE_DEVICE_DEBUG;
> +    }
> +#endif

This part might be folded in the load library function now I guess?

_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to