mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-08 06:09:50 +00:00
lavc: add a packet side data type for VBV-like parameters
This commit is contained in:
parent
e63e3797a1
commit
f0b769c16d
3 changed files with 69 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue