open-h264: Add padding to packet buffer

According to documentation this padding should be there and valgrind will
complain if it isn't.
pull/12/head
Andri Yngvason 2022-06-29 16:30:15 +00:00
parent f6a634f30b
commit af59624f83
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)
return NULL;
char* data = malloc(length);
char* data = calloc(1, length + AV_INPUT_BUFFER_PADDING_SIZE);
if (!data)
return NULL;