Fix nvenc
This commit is contained in:
parent
c7d6e959e0
commit
87f3ab0181
2 changed files with 5 additions and 2 deletions
|
|
@ -1 +1 @@
|
|||
Subproject commit 51f776dbd4b2ead239a966406447d12f7e942636
|
||||
Subproject commit 8ec14fd4a40d85443084b283ab24415d729984cb
|
||||
|
|
@ -1255,7 +1255,10 @@ util::Either<buffer_t, int> nv_d3d_make_hwdevice_ctx(platf::hwdevice_t *hwdevice
|
|||
auto ctx = (AVD3D11VADeviceContext*)((AVHWDeviceContext*)ctx_buf->data)->hwctx;
|
||||
|
||||
std::fill_n((std::uint8_t*)ctx, sizeof(AVD3D11VADeviceContext), 0);
|
||||
std::swap(ctx->device, *(ID3D11Device**)&hwdevice_ctx->data);
|
||||
|
||||
auto device = (ID3D11Device*)hwdevice_ctx->data;
|
||||
device->AddRef();
|
||||
ctx->device = device;
|
||||
|
||||
auto err = av_hwdevice_ctx_init(ctx_buf.get());
|
||||
if(err) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue