diff options
author | James Almer <jamrial@gmail.com> | 2018-02-23 00:09:38 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2018-02-23 00:17:17 -0300 |
commit | dc40e64adb1712b1209c018914a44f809bc32664 (patch) | |
tree | 5fc132e63ad7ec45123fdf4f9df4775de64cc9fc /libavformat | |
parent | 8ca39b855a7b0e4d9f726fa9d285bc8edcb953e6 (diff) | |
download | ffmpeg-dc40e64adb1712b1209c018914a44f809bc32664.tar.gz |
hvcc: zero initialize the nal buffers past the last written byte
Bug-Id: 1116
Cc: libav-stable@libav.org
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/hevc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/hevc.c b/libavformat/hevc.c index f8bfeebd31..1f8a7bb3c6 100644 --- a/libavformat/hevc.c +++ b/libavformat/hevc.c @@ -657,6 +657,8 @@ static uint8_t *nal_unit_extract_rbsp(const uint8_t *src, uint32_t src_len, while (i < src_len) dst[len++] = src[i++]; + memset(dst + len, 0, AV_INPUT_BUFFER_PADDING_SIZE); + *dst_len = len; return dst; } |