You've already forked FFmpeg
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:
@ -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 = {
|
||||||
|
Reference in New Issue
Block a user