mirror of https://git.ffmpeg.org/ffmpeg.git
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>
This commit is contained in:
parent
8ca39b855a
commit
dc40e64adb
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue