On Mon, 19 Jun 2017 11:56:04 +0200
Luca Barbato <[email protected]> wrote:
> 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?
Probably, but you'd still need to know whether it could be loaded. Or I
think that's how it works.
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel