diff options
author | Hendrik Leppkes <h.leppkes@gmail.com> | 2015-12-17 13:25:52 +0100 |
---|---|---|
committer | Hendrik Leppkes <h.leppkes@gmail.com> | 2015-12-17 13:25:52 +0100 |
commit | dd6ee019ea828a2700e38366983ef343612021c6 (patch) | |
tree | 1c5d8ea9a7d23133d4caa4887cf787d936b33049 /libavcodec/utils.c | |
parent | be52b95d311bb392fe99a6bb3b8db74e255043e3 (diff) | |
parent | f0b769c16daafa64720dcba7fa81a9f5255e1d29 (diff) | |
download | ffmpeg-dd6ee019ea828a2700e38366983ef343612021c6.tar.gz |
Merge commit 'f0b769c16daafa64720dcba7fa81a9f5255e1d29'
* commit 'f0b769c16daafa64720dcba7fa81a9f5255e1d29':
lavc: add a packet side data type for VBV-like parameters
Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
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 b039885847..488b67c064 100644 --- a/libavcodec/utils.c +++ b/libavcodec/utils.c @@ -3488,3 +3488,17 @@ const uint8_t *avpriv_find_start_code(const uint8_t *av_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; +} |