summaryrefslogtreecommitdiff
path: root/libavcodec
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2020-01-17 21:29:22 -0300
committerJames Almer <jamrial@gmail.com>2020-01-18 12:45:59 -0300
commit6ae84e7b037f8ceafff5b7bf17a317cc1ce0acb0 (patch)
tree20b8c7a6d8b8217cb199fe4a7a490506b5518347 /libavcodec
parentb9606064c406a1e2a169590ff098c8edb7516bae (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')
-rw-r--r--libavcodec/libx265.c1
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;