open-h264: Add padding to packet buffer

According to documentation this padding should be there and valgrind will
complain if it isn't.
libvncclient-integration
Andri Yngvason 2022-06-29 16:30:15 +00:00
parent b86a3f295a
commit ab3dacbfd7
1 changed files with 1 additions and 1 deletions

View File

@ -234,7 +234,7 @@ struct AVFrame* open_h264_decode_rect(struct open_h264* self,
if (!context) if (!context)
return NULL; return NULL;
char* data = malloc(length); char* data = calloc(1, length + AV_INPUT_BUFFER_PADDING_SIZE);
if (!data) if (!data)
return NULL; return NULL;