mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
avcodec/nvenc: fix potantially uninitialized free
This commit is contained in:
parent
19e75fd883
commit
a19989cae5
@ -1536,7 +1536,7 @@ static int process_output_surface(AVCodecContext *avctx, AVPacket *pkt, NvencSur
|
||||
NV_ENCODE_API_FUNCTION_LIST *p_nvenc = &dl_fn->nvenc_funcs;
|
||||
|
||||
uint32_t slice_mode_data;
|
||||
uint32_t *slice_offsets;
|
||||
uint32_t *slice_offsets = NULL;
|
||||
NV_ENC_LOCK_BITSTREAM lock_params = { 0 };
|
||||
NVENCSTATUS nv_status;
|
||||
int res = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user