X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Fhevc.c;h=3628d5a0282b7d9672ded0778215cc74ed262187;hb=a92ca3c07c89855d46c801ef05428b5d86a1b30c;hp=e45d2c08d2ddb01e7f4744fd0165afce709d4962;hpb=6727cfea5e416c32591563a6e91936629ae16185;p=ffmpeg diff --git a/libavformat/hevc.c b/libavformat/hevc.c index e45d2c08d2d..3628d5a0282 100644 --- a/libavformat/hevc.c +++ b/libavformat/hevc.c @@ -669,6 +669,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; }