diff options
author | Timo Rothenpieler <timo@rothenpieler.org> | 2016-08-28 18:19:21 +0200 |
---|---|---|
committer | Timo Rothenpieler <timo@rothenpieler.org> | 2016-08-28 18:58:05 +0200 |
commit | a19989cae581817e8857623d3afc447372b1c0e3 (patch) | |
tree | df760ac3d19c987c15ee86c3c3b79d1f43ff06df | |
parent | 19e75fd8838df668fb4b9af95b3a57874b1af32a (diff) | |
download | ffmpeg-a19989cae581817e8857623d3afc447372b1c0e3.tar.gz |
avcodec/nvenc: fix potantially uninitialized free
-rw-r--r-- | libavcodec/nvenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/nvenc.c b/libavcodec/nvenc.c index c92df532b6..8994af1681 100644 --- a/libavcodec/nvenc.c +++ b/libavcodec/nvenc.c @@ -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; |