[FFmpeg-cvslog] avcodec/nvenc: fix potantially uninitialized free
Timo Rothenpieler
git at videolan.org
Sun Aug 28 19:58:21 EEST 2016
ffmpeg | branch: master | Timo Rothenpieler <timo at rothenpieler.org> | Sun Aug 28 18:19:21 2016 +0200| [a19989cae581817e8857623d3afc447372b1c0e3] | committer: Timo Rothenpieler
avcodec/nvenc: fix potantially uninitialized free
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a19989cae581817e8857623d3afc447372b1c0e3
---
libavcodec/nvenc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/nvenc.c b/libavcodec/nvenc.c
index c92df53..8994af1 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;
More information about the ffmpeg-cvslog
mailing list