1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-08-04 22:03:09 +02:00

avcodec/d3d12va_encode: don't return uninitialized value on error

When CreateEvent fails, err was not initialized.

Signed-off-by: Kacper Michajłow <kasper93@gmail.com>
This commit is contained in:
Kacper Michajłow
2025-07-22 21:07:41 +02:00
parent 7d9b21601c
commit 62e2af358d

View File

@ -1265,7 +1265,7 @@ static int d3d12va_encode_create_command_objects(AVCodecContext *avctx)
{ {
D3D12VAEncodeContext *ctx = avctx->priv_data; D3D12VAEncodeContext *ctx = avctx->priv_data;
ID3D12CommandAllocator *command_allocator = NULL; ID3D12CommandAllocator *command_allocator = NULL;
int err; int err = AVERROR_UNKNOWN;
HRESULT hr; HRESULT hr;
D3D12_COMMAND_QUEUE_DESC queue_desc = { D3D12_COMMAND_QUEUE_DESC queue_desc = {