From a19989cae581817e8857623d3afc447372b1c0e3 Mon Sep 17 00:00:00 2001 From: Timo Rothenpieler Date: Sun, 28 Aug 2016 18:19:21 +0200 Subject: avcodec/nvenc: fix potantially uninitialized free --- libavcodec/nvenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavcodec') 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; -- cgit v1.2.3