summaryrefslogtreecommitdiff
path: root/libavcodec
diff options
context:
space:
mode:
authorTimo Rothenpieler <timo@rothenpieler.org>2016-08-28 18:19:21 +0200
committerTimo Rothenpieler <timo@rothenpieler.org>2016-08-28 18:58:05 +0200
commita19989cae581817e8857623d3afc447372b1c0e3 (patch)
treedf760ac3d19c987c15ee86c3c3b79d1f43ff06df /libavcodec
parent19e75fd8838df668fb4b9af95b3a57874b1af32a (diff)
avcodec/nvenc: fix potantially uninitialized free
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/nvenc.c2
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;