diff options
author | Anton Khirnov <anton@khirnov.net> | 2015-07-22 14:04:20 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2015-12-06 10:23:45 +0100 |
commit | f0b769c16daafa64720dcba7fa81a9f5255e1d29 (patch) | |
tree | 175b418ea61a5b996ffce0cac8f696d2475aa3ae /libavcodec/utils.c | |
parent | e63e3797a1ed9346f529848e6ba3d27fd2d2cc8d (diff) |
lavc: add a packet side data type for VBV-like parameters
Diffstat (limited to 'libavcodec/utils.c')
-rw-r--r-- | libavcodec/utils.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c index f3361a016f..d2f4de770b 100644 --- a/libavcodec/utils.c +++ b/libavcodec/utils.c @@ -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; +} |