diff options
author | James Almer <jamrial@gmail.com> | 2020-01-18 03:29:22 +0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2020-01-18 18:45:59 +0300 |
commit | 6ae84e7b037f8ceafff5b7bf17a317cc1ce0acb0 (patch) | |
tree | 20b8c7a6d8b8217cb199fe4a7a490506b5518347 /libavcodec/libx265.c | |
parent | b9606064c406a1e2a169590ff098c8edb7516bae (diff) |
avcodec/libx265: zero the padding bytes in extradata
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/libx265.c')
-rw-r--r-- | libavcodec/libx265.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/libx265.c b/libavcodec/libx265.c index 9e4711e50b..e42c7b4d85 100644 --- a/libavcodec/libx265.c +++ b/libavcodec/libx265.c @@ -400,6 +400,7 @@ static av_cold int libx265_encode_init(AVCodecContext *avctx) } memcpy(avctx->extradata, nal[0].payload, avctx->extradata_size); + memset(avctx->extradata + avctx->extradata_size, 0, AV_INPUT_BUFFER_PADDING_SIZE); } return 0; |