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
parent
b86a3f295a
commit
ab3dacbfd7
|
@ -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