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
parent
f6a634f30b
commit
af59624f83
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue