lavc: add a packet side data type for VBV-like parameters

This commit is contained in:
Anton Khirnov
2015-07-22 14:04:20 +02:00
parent e63e3797a1
commit f0b769c16d
3 changed files with 69 additions and 0 deletions

View File

@@ -2369,3 +2369,17 @@ const uint8_t *avpriv_find_start_code(const uint8_t *restrict p,
return p + 4;
}
AVCPBProperties *av_cpb_properties_alloc(size_t *size)
{
AVCPBProperties *props = av_mallocz(sizeof(AVCPBProperties));
if (!props)
return NULL;
if (size)
*size = sizeof(*props);
props->vbv_delay = UINT64_MAX;
return props;
}